uboot
The openwrt uboot for qi_lb60 (made in nixpkgs using this tarball and applying these patches) is built with these BOOTARGS, as in package/uboot-xburst/files/include/configs/qi_lb60.h:
#define CONFIG_BOOTARGS "mem=32M console=tty0 console=ttyS0,57600n8 ubi.mtd=2 rootfstype=ubifs root=ubi0:rootfs rw rootwait" #define CONFIG_BOOTARGSFROMSD "mem=32M console=tty0 console=ttyS0,57600n8 rootfstype=ext2 root=/dev/mmcblk0p1 rw rootwait" #define CONFIG_BOOTCOMMAND "nand read 0x80600000 0x400000 0x200000;bootm" #define CONFIG_BOOTCOMMANDFROMSD "mmc init; ext2load mmc 0 0x80600000 /boot/uImage; bootm"
xiangfu mentioned on irc that they have two utilities in their openwrt to write the setenv for the uboot.
linux
The kernel (original 2.6.35 + openwrt patches) is set to run /etc/preinit, as the generic openwrt patch says:
- run_init_process("/sbin/init"); - run_init_process("/etc/init"); - run_init_process("/bin/init"); - run_init_process("/bin/sh"); + run_init_process("/etc/preinit");