I've attached my uEnv.txt file I use for mounting rootfs over NFS. Not sure how to work around using two kernels, one built with initrd and another without initrd support.
Regards, John On 7/16/14, 3:18 PM, "Robert Nelson" <[email protected]> wrote: >On Wed, Jul 16, 2014 at 5:15 PM, Robert Nelson <[email protected]> >wrote: >>>> >>>>Let me know your thoughts. >>> Mostly I like the changes you have made. Given that rootfs over NFS >>> doesn¹t work with initrd, do you have any plans to add kernels to your >>> repo without initrd support? >> >> I was looking at that too, when i merged you config patch.. Did this >> recently change? >> >> CONFIG_BLK_DEV_INITRD=y >> >>https://github.com/RobertCNelson/bb-kernel/blob/am33x-v3.15/patches/defco >>nfig#L139 >> >> CONFIG_ROOT_NFS=y >> >>https://github.com/RobertCNelson/bb-kernel/blob/am33x-v3.15/patches/defco >>nfig#L4843 >> >> In the updated u-boot patchset, it the initrd.img-xyz is not found, it >> will just boot "bootz ${loadaddr} - ${fdtaddr};" as a backup. But i >> forgot an nfs specific override. Since i've been copying >> grub/extlinux, do they have a standard "nfs" variable set to pass to >> the bootloader? > >found it, i'll use the kernel version: >https://www.kernel.org/doc/Documentation/filesystems/nfs/nfsroot.txt > >Regards, > >-- >Robert Nelson >http://www.rcn-ee.com/ > >-- >For more options, visit http://beagleboard.org/discuss >--- >You received this message because you are subscribed to the Google Groups >"BeagleBoard" group. >To unsubscribe from this group and stop receiving emails from it, send an >email to [email protected]. >For more options, visit https://groups.google.com/d/optout. -- For more options, visit http://beagleboard.org/discuss --- You received this message because you are subscribed to the Google Groups "BeagleBoard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
kernel_file=zImage initrd_file=initrd.img ##Video: [ls /sys/class/drm/] ##Docs: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/Documentation/fb/modedb.txt #Video: Uncomment to override: kms_force_mode=video=HDMI-A-1:1280x1024@60e ##Enable systemd #initopts=quiet init=/lib/systemd/systemd ##BeagleBone Cape Overrides ##Note: On the BeagleBone Black, there is also an uEnv.txt in the eMMC, so if these changes do not seem to be makeing a difference... ##BeagleBone Black: ##Disable HDMI/eMMC # Note it is necessary to disable BOTH HDMI and HDMIN (no audio) "capes" # in order to use the HDMI pins for I/O #cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,BB-BONE-EMMC-2G ##Disable HDMI # Default to leaving the HDMIN "cape" enabled, so HDMI works "out of the box" # Comment the line below and uncomment the optargs= line above to use an unmodified # BeBoPr or other board that uses the HDMI/LCD pins #cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONE-EMMC-2G #disable all board capes #cape_disable=capemgr.disable_partno=BB-BONELT-HDMI,BB-BONELT-HDMIN,BB-BONE-EMMC-2G ##Audio Cape (needs HDMI Audio disabled) #cape_disable=capemgr.disable_partno=BB-BONELT-HDMI #cape_enable=capemgr.enable_partno=BB-BONE-AUDI-02 ##Example #cape_disable=capemgr.disable_partno= #cape_enable=capemgr.enable_partno= ##WIP: v3.14+ capes.. #cape=ttyO1 #cape= #MMC #mmcroot=/dev/mmcblk0p2 ro #mmcrootfstype=ext4 rootwait fixrtc #loadkernel=load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${kernel_file} #loadinitrd=load mmc ${mmcdev}:${mmcpart} 0x88080000 ${initrd_file}; setenv initrd_size ${filesize} #loadfdt=load mmc ${mmcdev}:${mmcpart} ${fdtaddr} /dtbs/${fdtfile} #loadfiles=run loadkernel; run loadinitrd; run loadfdt #mmcargs=setenv bootargs console=tty0 console=${console} ${optargs} ${cape_disable} ${cape_enable} ${kms_force_mode} root=${mmcroot} rootfstype=${mmcrootfstype} ${initopts} #uenvcmd=run loadfiles; run mmcargs; bootz ${loadaddr} 0x88080000:${initrd_size} ${fdtaddr} ##NETWORKING serverip=10.100.116.73 ipaddr=10.100.116.105 gatewayip=10.100.116.1 netmask=255.255.255.0 #static_ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}::eth0:off static_ip=10.100.116.105:10.100.116.73:10.100.116.1:255.255.255.0::eth0:off ##NFS nfsrootdev=/dev/nfs rw rootpath=10.100.116.73:/home/<userid>/targetNFS,vers=3 nfsrootfstype=ext4 rootwait fixrtc netargs=setenv bootargs console=${console} ${optargs} ${cape_disable} ${cape_enable} ${kms_force_mode} root=${nfsrootdev} rootfstype=${nfsrootfstype} nfsroot=${rootpath} ${initopts} ip=${static_ip} ${dbgargs} netboot=echo Booting from network ...; setenv autoload no; tftp ${loadaddr} ${bootfile}; tftp ${fdtaddr} dtbs/${fdtfile}; run netargs; bootz ${loadaddr} - ${fdtaddr} uenvcmd=run netboot #
