-
Notifications
You must be signed in to change notification settings - Fork 12
Add resin io support for am571x-evm #164
Comments
How to force AM57xx EVM to boot from eMMC after resin-image-flasher from SD card is finished? I can see that mmcblk1 device is populated, but the board is always booted form mmcblk0. Removing the SD card does not help. |
Removing the SD card from the board would force your board to boot from the other available media, which should be the eMMC. |
No, the console is empty. The only way I can boot device is via SD card without pressing the button. After a few minutes, the systemctl-shutdown is called. Is that normal? |
So you get no output on the console but only after a few minutes when you see systemctl-shutdown being called? You should see some boot logs too. But about the systemctl shutdown problem, I am aware of that and looking into it just now as a matter of fact. |
Let me rephrase that. When you boot off the SD card, at some point systemctl shutdown is being called? |
I can see console only if SD card with resin-image-flasher is inserted and the device is booted. I do note need to press SW3 when powering on in order to boot from SD card. This was usually the case with beaglebone. When mounting mmcblk1 device I can see all partitions already be made, but when removing the SD card, EVM is not booted (not even U-Boot). Maybe auto shutdown is a problem here? In order to build the images I changed the Dockerfile in docker-disk (added tmp path before entry.sh), otherwise image build failed. Also host-update-resin.bbclass needs to be changed to find proper images for tar. I have used IMGDEPLOYDIR instead of DEPLOY_DIR_IMAGE. Are you aware of this problems? |
Exactly @last message |
Yes, these should be fixed now. When did you fetch the repository? Might try to pull it again. And sorry, as it is still WIP, I have rewritten the history to keep just the initial commit until I feel it is stable. Once we release the board in resin.io, then I will consider it stable and git history shall be also stable. So when you boot off the SD card, that particular image is a flasher image (an installer) which writes the resin OS image to the eMMC and then shutsdown. After that, removing the SD card and pressing SW3 should boot off the eMMC. |
I have fetched the repository a few hours ago. My board version is A3. Would be possible to include the history in your commits in order to see what is changed. This way is easier for us to analyze the fixes. |
Right now I am working in meta-resin and adding changes there so we have this board using poky morty revision. So this means I had to do quite a few commits in meta-resin and then that would have meant a lot of meaningless meta-resin submodule updates in resin-am57xx-evm. Once it is stable, as I said, the git history would not be changed anymore. A3? That is a bit strange. Are you sure you are using the AM571x Industrial EVM board? My board says Revision 1.3A on the PCB and it is not that old. Your A3 seems a bit strange to me. Well, if you have pulled the repository successfully, you should be able to just run barys once more and the build process would re-build only the packages which have the yocto metadata changed |
I am using http://www.ti.com/tool/TMDSEVM572X |
Hm, this may be a problem. |
I have used the board with Ubuntu image succesfully. I think the processor is similar enough, but will check. |
Manually copied MLO an uboot to mmcblk1p1 and the board boots from eMMC. Still having problems with docker-disk Dockerfile and entry.sh. Also resinhup tar is not finding images from DEPLOY_DIR_IMAGE. Wonder why others don't see these problems? |
What is the command you use to build? Can you paste it here please? |
Hi,
command I am using is:
jernej@server:~/resinos/resin-am571x$
./resin-yocto-scripts/build/barys
Regards,
Jernej
…On Thu, Jan 26, 2017 at 10:57 AM, Florin Sarbu ***@***.***> wrote:
What is the command you use to build? Can you paste it here please?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#164 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ACts42Dhuu0YgvwhJtP0SjyAP1Tbno1qks5rWG4BgaJpZM4Ln698>
.
|
Can you also post the git sha of your working tree please? |
For the meta-resin: commit 5fee04b864ec31b8f70ec8c13def58c5357eedab
|
K, and what about the git sha of https://github.com/resin-os/resin-am571x-evm ? This repository should be stable from now on in terms of history |
commit 53412a83050d4ccb929ba6d55a0b2eea0c6a60c7
|
That is strange. |
Nope, ot doesn't work. I am building on Ubuntu Server 16.04. |
You get the same error as before? |
ERROR: docker-resin-supervisor-disk-0.0.0-r0 do_compile: Function failed: do_compile (log file is located at /home/jernej/resinos/resin-am571x-evm/build/tmp/work/am57xx_evm-poky-linux-gnueabi/docker-resin-supervisor-disk/0.0.0-r0/temp/log.do_compile.12101) |
What is the docker version on your build machine? |
Docker version 1.12.1, build 23cf638 |
What storage driver is docker using on your build machine? |
Containers: 10 |
Okay, so that is a new error, right? I don't recall you saying that you had this issue before. |
No, it is not a new error. It always pop up when building from scratch. I have fixed it with adding tmp path in front every entry.sh in Dockerfile. |
Yeah, apparently I need to do something similar like I did in balena-os/meta-balena@ab0949e when also using resinHUP. I did not build with resinHUP support when I switched to morty |
Hi @jturnsek, if you update manually meta-resin now you should not have the second error anymore. As for the first error, I haven't encountered that on my side so not sure what to make of it |
Hi. Probably it is a problem with dash vs bash. On similar project we had problems with building Yocto when using default dash shell. Switched to bash and problems disappeared. |
Hi @jturnsek . This was not the case now. It was actually a bug in our core OS layer which was fixed in the meanwhile. |
Were we able to reproduce, @floion ? Sounds like something we would like to fix. |
No. I don't have an Ubuntu available to change from bash to dash and try to reproduce this |
@floion the problem is still there. I was mistaken when changing dash to bash worked for me, because I still had tmp path inside Dockerfile. It must be something with the Ubuntu distribution or docker version related. Try adding tmp path before each entry.sh. This should fix the problem for all distros. |
@jturnsek can you paste the diff here? |
diff --git a/meta-resin-common/recipes-containers/docker-disk/files/Dockerfile b/meta-resin-common/recipes-containers/docker-disk/files/Dockerfile RUN apk add --update bash util-linux && rm -rf /var/cache/apk/* -ADD entry.sh /entry.sh -RUN chmod a+x /entry.sh -CMD /entry.sh |
No, I haven't had time to find it. I am on other projects now. My fix with the tmp dir is working and is good enough for me. Probably it is related with my build machine somehow. |
Ok @jturnsek . I will close this issue for now but feel free to come back if you have any additional information that would help us to investigate further. |
No description provided.
The text was updated successfully, but these errors were encountered: