On Tue, Aug 23, 2011 at 11:15:07AM +0800, Xiangfu Liu wrote: > On 08/22/2011 05:16 PM, Andrea Bolognani wrote: > >Just for cosmetic value, is it possible to make u-boot quiet as well? > > yes. we can do that. maybe after this release :)
Attached are two patches, one to openwrt-xburst.git and one to openwrt-package.git, that respectively include and enable silent u-boot. The patches are *untested*, as I lack the confidence to actually flash a modified u-boot on my NanoNote; however, I believe both to be quite safe, and I’m sure a more experienced developer can evaluate them and test them on real hardware to confirm that. The second one might cause problems to people using a serial console along with their NanoNotes, but such users can get back to the old behavior with a couple of fw_setenv calls, so I don’t think this should hold us back. This, along with the recent changes to both bootup and shutdown, makes the NanoNote look a lot more polished, which I think is an important goal. -- Andrea Bolognani <[email protected]> Resistance is futile, you will be garbage collected.
diff --git a/package/uboot-xburst/files/include/configs/nanonote.h b/package/uboot-xburst/files/include/configs/nanonote.h index 6b7d635..d7b624a 100644 --- a/package/uboot-xburst/files/include/configs/nanonote.h +++ b/package/uboot-xburst/files/include/configs/nanonote.h @@ -95,6 +95,9 @@ #define CONFIG_SYS_MEMTEST_START 0x80100000 #define CONFIG_SYS_MEMTEST_END 0x80800000 +#define CONFIG_SILENT_CONSOLE 1 /* Enable support for silent boot */ +#define CONFIG_SYS_DEVICE_NULLDEV 1 /* Enable output sink */ + /* * Environment */
diff --git a/nanonote-files/script-files/usr/bin/mtd.nn b/nanonote-files/script-files/usr/bin/mtd.nn
index 93a5cc9..17be24f 100755
--- a/nanonote-files/script-files/usr/bin/mtd.nn
+++ b/nanonote-files/script-files/usr/bin/mtd.nn
@@ -67,9 +67,7 @@ if [ "$1" == "fw_setenv_default" ]; then
fw_setenv bootdelay 0
fw_setenv baudrate 57600
fw_setenv loads_echo 1
- fw_setenv stdin serial
- fw_setenv stderr serial
- fw_setenv stdout serial
+ fw_setenv silent 1
fw_setenv bootcmdf1 mmc init\; ext2load mmc 0:1 0x80600000 /boot/uImage\; bootm
fw_setenv bootargsf1 mem=32M console=tty0 console=ttyS0,57600n8 rootfstype=ext2 root=/dev/mmcblk0p1 rw rootwait
fw_setenv bootcmdf2 mmc init\; ext2load mmc 0:2 0x80600000 /boot/uImage\; bootm
signature.asc
Description: Digital signature
_______________________________________________ Qi Hardware Discussion List Mail to list (members only): [email protected] Subscribe or Unsubscribe: http://lists.en.qi-hardware.com/mailman/listinfo/discussion

