Before posting to this group, I have tried several methods and
followed several hints to make this work. My current problem as
indicated in the subject of this message is to have eth0 configured on
startup with Android ICS on pandaboard.
I have launched each command manually and they are working good. I
have also wrote a shell script like the following (also working well
when launched manually from a shell):
#!/system/bin/sh
setprop service.adb.tcp.port 5555
netcfg eth0 up
ifconfig eth0 <ip> netmask <mask>
route add default gw <ip> dev eth0
setprop net.dns1 <ip>
I have also modified the correct device.mk file to install my script
on a specific directory on system partition and I add the following
lines to the init.omap4pandaboard.rc:
service starteth0 /system/bin/starteth0.sh
I have also checked the rights on the file which are correctly set.
When the board finished its boot sequence an "adb shell dmesg" returns
me these two lines I thought having an impact on my problem:
<3>[ 31.963104] init: no such service 'dhcpcd_eth0:-h
android-33b095bf4a9305a0 eth0'
<3>[ 31.982055] init: no such service 'dhcpcd_eth0:-h
android-33b095bf4a9305a0 eth0'
They made me think that some processes/scripts (my script) is
executing but not working well but I'm not sure and a little lost on
this topic.
Does someone encounter the same issue or have any hints for this kind
of problem.
Thx
I intend on building a list of patches based on those of the android-
x86 project and picopc, that should apply directly against the android
code base. Otherwise maybe Nicu or others can answer, that may have a
bit more internal info about the subject.
> > Hi
>
> > Have you tried adding your script to be executed from init.rc?
>
> > I am doing something similar to you, however, all I did was modified
> > init.rc to run my script. My script sets the IP address, runs dropbear and
> > then does device specific checks).
I have tried aso to do it this way but without any success. The only
way to have something working is to put in the init.omap4pandaboard.rc
a line where I call the dhcp daemon just the same way as done for
wlan_0 connection.
> > I intend on building a list of patches based on those of the android-
> >x86 project and picopc, that should apply directly against the android
> >code base. Otherwise maybe Nicu or others can answer, that may have a
> >bit more internal info about the subject.
I'm very interested by this list since I may find some that can
applies on my target to enable some features.