HI I want to know which are the boot args for a beagle board in order
to boot with the USB-ethernet adapter
I have already enable the usb-ethernet adapter on my kernel image
when i plug my usb-ethernet converter
usb 1-2.4: new high speed USB device using ehci-omap and address 6
eth0: register 'asix' at usb-ehci-omap.0-2.4, ASIX AX88772 USB 2.0
Ethernet, 00:00:00:00:30:10
if I run
# busybox ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
and then in order to enable the ethernet
ifconfig eth0 up
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
# eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
ifconfig eth0 "the ip addrs"
# busybox ifconfig
eth0 Link encap:Ethernet HWaddr 00:00:00:00:30:10
inet addr:10.79.0.43 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:67 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:8620 (8.4 KiB) TX bytes:0 (0.0 B)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
and i can do ping to my host computer
but how can i enable the ip gateway and netmask from my boot args. ?
if i put this as boot args
setenv bootargs 'mem=128M androidboot.console=ttyS2 console=tty0
console=ttyS2,115200n8 ip=10.15.0.1::10.100.1.1:255.255.254.0:eth0
root=/dev/mmcblk0p2 rw init=/init rootwait
omapfb.video_mode=640x480MR-16@60'
the log of my kernel is
IP-Config: Complete:
device=usb0, addr=10.79.0.43, mask=255.255.255.0, gw=10.79.0.1,
host=eth0, domain=, nis-domain=(none),
bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=
eth0: register 'asix' at usb-ehci-omap.0-2.4, ASIX AX88772 USB 2.0
Ethernet, 00:00:00:00:30:10
kjournald starting. Commit interval 5 seconds
EXT3-fs (mmcblk0p2): warning: maximal mount count reached, running
e2fsck is recommended
EXT3-fs (mmcblk0p2): using internal journal
EXT3-fs (mmcblk0p2): recovery complete
EXT3-fs (mmcblk0p2): mounted filesystem with writeback data mode
VFS: Mounted root (ext3 filesystem) on device 179:2.
Freeing init memory: 168K
Warning: unable to open an initial console.
init: cannot find '/system/etc/install-recovery.sh', disabling 'flash_recovery'
# warning: `zygote' uses 32-bit capabilities (legacy support in use)
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
# busybox ifconfig
eth0 Link encap:Ethernet HWaddr 00:00:00:00:30:10
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:33 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4914 (4.7 KiB) TX bytes:2768 (2.7 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
usb0 Link encap:Ethernet HWaddr 22:EA:38:38:3D:71
inet addr:10.79.0.43 Bcast:10.79.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
Thanks a lot for your help
Regards
Victor Rodriguez