原廠設計:
Flash 8Mb
size | size(Hex) | Start | End | |
---|---|---|---|---|
u-boot | 256k | 0x40000 (262144) | 0x30000000 | 0x3003ffff |
kernel | 2Mb | 0x200000 (2097152) | 0x30040000 | 0x3023ffff |
rootfs | — | — | 0x30240000 | 0x307fffff |
修改 busyboy .config
#!/bin/sh # udhcpc script edited by Tim Riker <Tim@Rikers.org> [ -z "$1" ] && echo "Error: should be called from udhcpc" && exit 1 RESOLV_CONF="/etc/resolv.conf" [ -n "$broadcast" ] && BROADCAST="broadcast $broadcast" [ -n "$subnet" ] && NETMASK="netmask $subnet" case "$1" in deconfig) # 設定 default IP /sbin/ifconfig $interface 192.168.100.253 ;; renew|bound) /sbin/ifconfig $interface $ip $BROADCAST $NETMASK if [ -n "$router" ] ; then echo "deleting routers" while route del default gw 0.0.0.0 dev $interface ; do : done metric=0 for i in $router ; do route add default gw $i dev $interface metric $((metric++)) done fi echo -n > $RESOLV_CONF [ -n "$domain" ] && echo search $domain >> $RESOLV_CONF for i in $dns ; do echo adding dns $i echo nameserver $i >> $RESOLV_CONF done ;; esac exit 0
# udhcpc eth0 -b
加 -b 為取不到 IP 則背景執行
分享模式由 default 的 share mode 改成 user mode,
但新增的 user 卻無法 login。
後來解決的方法是將 user 的 id 及 group id 都改成 0(即 root 的 id 及 group)。