[Buildroot] BeagleBoard-xM, booting 2.6.37, root=/dev/mmcblk0p2, kernel hangs
stevecalfee at gmail.com
Wed Mar 23 23:31:31 UTC 2011
On 03/23/11 15:53, bruce bushby wrote:
> I've only just started using buildroot but I found the NFS setup simplifies
> things and it also makes testing new builds very easy.
> I can help with the NFS setup if you need.....it's about the only part of
> things I'm any good at :)
> my uboot settings:
> U-Boot> printenv
> bootcmd=ethinit $ipaddr ; tftp 0x20200000 uImage ; bootm 0x20200000
> bootargs=console=ttyS0,115200 mem=64M ver=4384k icofat=257k root=/dev/nfs
> nfsroot=22.214.171.124:/nfsroot ip=126.96.36.199
> mtdparts=atmel_nand:7936k(ARMboot)ro,- at 7936k(root)
> Environment size: 431/32764 bytes
> 1. setup tftpboot (I use /tftpboot)
> 2. Create an nfs share (I use /nfsroot)
> 2. Copy uImage to /tftpboot/uImage (give /tftpboot 777 file perms)
> 4. Copy rootfs.tar to /nfsroot ; tar -xf rootfs.tar
> setenv ipaddr 188.8.131.52
> setenv bootcmd "...your bootcmd"
> setenv bootargs "..your bootargs"
> I set my bootcmd to include "ethinit $ipaddr;" .... otherwise you have to
> manually "ethinit $ipaddr"
What u-boot are you using and what is it's config. I see here you got
both usb ethernet to work and also saveenv to mmc. I would like to see
your u-boot config.
I gave up on u-boot, but do mount nfs from the bb-xm. then if needed I
copy over a new uImage and reboot. Obviously either tftp or nfs booting
would be even nicer.
I tried to get kexec to work on the bb, but it doesn't. Lots of people
are saying kexec is not working in 2.6.38, but I haven't seen fixes yet.
The nice thing about kexec is it uses a less bloated u-boot, gives
better scripting capability (and for me without the ability to saveenv),
easier customizing. But alas....
More information about the buildroot