[android-porting] How to build up the network on beagle board?

79 vistas
Ir al primer mensaje no leído

Susan

no leída,
19 abr 2009, 8:10:24 a.m.19/4/09
para Beagle Board
Hi All,
I'm curious for the network setting on porting android on
beagleboard. I do not use the NFS to boot the filesystem. I just put
the filesystem in ext3 partition, so can I build up the network? I
have modified the init.rc by adding the:

# basic network init
ifup lo
hostname localhost
domainname localdomain
setprop net.dns1 <primary-dns-server-ip> (I have set the
primary-dns-server-ip to my own dns server)

then I have set my bootargs:

setenv bootargs console=ttyS2,115200n8 root=/dev/mmcblk0p2 noinitrd
ip=<ip>::<gateway>:<netmask> video=omapfb:mode:1280x720@50 init=/init
rootfstype=ext3 rw rootdelay=1 nohz=off

after that, the hyper terminal on Windows appeals:

eth0: link up, 100Mbps, full-duplex, lpa 0x45E1
IP-Config: Complete:
device=eth0, addr=140.115.156.172, mask=255.255.255.0,
gw=140.115.156.254,
host=140.115.156.172, domain=, nis-domain=(none),
bootserver=255.255.255.255, rootserver=255.255.255.255, rootpath=
Waiting 1sec before mounting root device...
kjournald starting. Commit interval 5 seconds
EXT3-fs warning: mounting fs with errors, running e2fsck is
recommended
EXT3 FS on mmcblk0p2, internal journal
EXT3-fs: recovery complete.
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem).
Freeing init memory: 132K
Warning: unable to open an initial console.
init: /init.rc: 27: invalid command 'am'
init: cannot open '/initlogo.rle'
init: cannot find '/system/bin/playmp3', disabling 'bootsound'
sh: can't access tty; job control turned off
# warning: `rild' uses 32-bit capabilities (legacy support in use)

I use the demo uImage and filesytem that released for beagleboard.
I also use the Davicom DM9601 USB Ethernet Adapter just like the demo.

Does anyone has the solution about this problem?

Thanks in advanced and regards.

Rupesh Gujare

no leída,
20 abr 2009, 1:54:31 a.m.20/4/09
para beagl...@googlegroups.com
Susan,

Try with following:-

Susan wrote:
> Hi All,
> I'm curious for the network setting on porting android on
> beagleboard. I do not use the NFS to boot the filesystem. I just put
> the filesystem in ext3 partition, so can I build up the network? I
> have modified the init.rc by adding the:
>
> # basic network init
> ifup lo
> hostname localhost
> domainname localdomain
> setprop net.dns1 <primary-dns-server-ip> (I have set the
> primary-dns-server-ip to my own dns server)
>
>
Please set only dns1 ie.

#basic network init
setprop net.dns1 <primary-dns-server-ip>



> then I have set my bootargs:
>
> setenv bootargs console=ttyS2,115200n8 root=/dev/mmcblk0p2 noinitrd
> ip=<ip>::<gateway>:<netmask> video=omapfb:mode:1280x720@50 init=/init
> rootfstype=ext3 rw rootdelay=1 nohz=off
>
>
Dont pass "ip=" argument.

Once android booting is done issue following commands from hyper terminal:-

$netcfg eth0 up
$netcfg eth0 dhcp

Regards,

--
Rupesh Gujare
http://embinux.com
Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos