djwillis/meta-raspberrypi

SD image creation problem

sethbollinger opened this issue · 3 comments

It seems that the ext3 image hasn't been created before the sd card image builds. If I hexdump the ext3 image and the offset in the sd card image, they're not the same. If I try to use this generated image, the raspberry pi won't boot. If I do the steps manually after the ext3 image has been generated, the image boots (and the hexdumps match).

I tried to find a way to fix it, but I'm a bit too much of a yocto noob to figure out how to add the dependency on the ext3 rootfs file generation.

Here's the hexdump:

seth@ctech ~/ct_yocto/ct_rpi/build $ !785
hexdump -n 3000 -s 20m tmp/deploy/images/rpi-hwup-image-raspberrypi.rpi-sdimg
1400000 0000 0000 0000 0000 0000 0000 0000 0000
*
1400bb0
seth@ctech ~/ct_yocto/ct_rpi/build $ !784
hexdump -n 3000 tmp/deploy/images/rpi-hwup-image-raspberrypi.ext3
0000000 0000 0000 0000 0000 0000 0000 0000 0000
*
0000400 1220 0000 9057 0000 0737 0000 161b 0000
0000410 0d4c 0000 0001 0000 0000 0000 0000 0000
0000420 1ce0 0000 1ce0 0000 03a0 0000 0000 0000
0000430 4e6f 4ff8 0000 0014 ef53 0001 0000 0000
0000440 4e6f 4ff8 0000 0000 0000 0000 0000 0000
0000450 0000 0000 0000 0000 0000 0000 0004 0000
0000460 0000 0000 0000 0000 0000 0000 0000 0000
*
00004e0 0008 0000 0000 0000 0000 0000 0000 0000
00004f0 0000 0000 0000 0000 0000 0000 0100 0000
0000500 0000 0000 0000 0000 0000 0000 4f47 0000
0000510 4f48 0000 4f49 0000 4f4a 0000 4f4b 0000
0000520 4f4c 0000 4f4d 0000 4f4e 0000 4f4f 0000
0000530 4f50 0000 4f51 0000 4f52 0000 4f53 0000
0000540 5054 0000 0000 0000 0000 0000 0000 0040
0000550 0000 0000 0000 0000 0000 0000 0000 0000
*
0000800 0003 0000 0004 0000 0005 0000 0b63 02ac
0000810 002d 0000 0000 0000 0000 0000 0000 0000
0000820 1ce3 0000 1ce4 0000 1ce5 0000 048b 02a8
0000830 002b 0000 0000 0000 0000 0000 0000 0000
0000840 39c3 0000 39c4 0000 39c5 0000 0000 02a8
0000850 0027 0000 0000 0000 0000 0000 0000 0000
0000860 56a3 0000 56a4 0000 56a5 0000 0000 02a8
0000870 0021 0000 0000 0000 0000 0000 0000 0000
0000880 7383 0000 7384 0000 7385 0000 062d 02a8
0000890 002f 0000 0000 0000 0000 0000 0000 0000
00008a0 0000 0000 0000 0000 0000 0000 0000 0000
*
0000bb0

Seth

What is your machine conf?

I was gathering data to answer your question when I noticed that I had rpi-sdimg set for IMAGE_FSTYPES in my local.conf (I had this set to make it work with a prior checkout of meta-raspberrypi). When I changed it to ext3 it worked! Thanks for your help!

Seth

On Jul 7, 2012, at 12:55 PM, Andrei Gherzan wrote:

What is your machine conf?


Reply to this email directly or view it on GitHub:
#28 (comment)

No problem. To clarify this, we now have IMAGE_FSTYPES += "tar.bz2 ext3 rpi-sdimg" in machine conf.

@g