mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-26 08:51:13 +00:00
30 lines
710 B
Diff
30 lines
710 B
Diff
|
--- a/include/configs/nas220.h
|
||
|
+++ b/include/configs/nas220.h
|
||
|
@@ -54,17 +54,22 @@
|
||
|
/*
|
||
|
* Default environment variables
|
||
|
*/
|
||
|
-#define CONFIG_BOOTCOMMAND ""
|
||
|
+#define CONFIG_BOOTCOMMAND \
|
||
|
+ "ubi part ubi; " \
|
||
|
+ "ubi read 0x800000 kernel; " \
|
||
|
+ "bootm 0x800000"
|
||
|
|
||
|
#define CONFIG_EXTRA_ENV_SETTINGS \
|
||
|
"bootargs=console=ttyS0,115200\0" \
|
||
|
"mtdparts=mtdparts=orion_nand:0xa0000@0x0(uboot),"\
|
||
|
"0x010000@0xa0000(env),"\
|
||
|
- "0x500000@0xc0000(uimage),"\
|
||
|
- "0x1a40000@0x5c0000(rootfs)\0" \
|
||
|
+ "0x1e80000@0xc0000(ubi)\0"\
|
||
|
"mtdids=nand0=orion_nand\0"\
|
||
|
"autostart=no\0"\
|
||
|
- "autoload=no\0"
|
||
|
+ "autoload=no\0"\
|
||
|
+ "ipaddr=10.4.50.165\0"\
|
||
|
+ "serverip=10.4.50.5\0"\
|
||
|
+ "bootdelay=3"
|
||
|
|
||
|
/*
|
||
|
* Ethernet Driver configuration
|