Firefly Open Source Community

   Login   |   Register   |
New_Topic

how to set the hostname on android

142

Credits

0

Prestige

0

Contribution

registered members

Rank: 8Rank: 8

Credits
142
Posted at 9/7/2015 03:56:13     
Hi,

I can't find any solution to set the hostname on android

I've tried to add the value in the /system/build.prop file but since I've done
"mount -o remount,rw /system" the RK3288 doesn't boot anymore, kernel stars but not the android layer

any help is more than welcomed
Thx
Mathieu
Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 9/7/2015 17:13:16     
Which hostname do you want to change?
Please attach a screenshot.
Reply

Use props Report

142

Credits

0

Prestige

0

Contribution

registered members

Rank: 8Rank: 8

Credits
142
Posted at 9/8/2015 17:48:52     
Hi

I net the value net.hostname to be set so that I can adresss our 192 Firefly plugged on the network using our local DNS
Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 9/11/2015 11:07:02     
In /init.rc, there's the hostname setting:
on boot              
# basic network init      
    ifup lo
    hostname localhost
    domainname localdomain                       

But I doubt that you want to modify that file.

You can also use busybox to set hostname:
   busybox hostname  myname

Also, there's /system/etc/hosts, which has the list the ip and hostname.
Reply

Use props Report

142

Credits

0

Prestige

0

Contribution

registered members

Rank: 8Rank: 8

Credits
142
Posted at 9/25/2015 23:45:06     
is /init.r the right place to do a ifuo etho in dhcp mode?

/system/etc/hosts is read only fs, I already tryied do to a remount rw of fs /system but it lead to the system failure and the I never succeed to repair the firefly installation which starts the kernel but not the android layer.

what I need it to set this value on system boot
[net.hostname]: [android-6a369c298c876691]

Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list