- - | 30 Jan 09:48
Picon

inferno on android. linux-dev-names

i suggest do not embed names of Linux devices to source code, but use a configuration file to read it at boot
time. for example, i not have /dev/fb0, but have /dev/graphics/fb0 on my moto droid2 (perhaps there are
other differences. i don't have environment to rebuild now).
in any case, it is not very convenient - recompile for each device for a pair of strings.

thanks

John Floren | 30 Jan 17:46
Favicon

Re: inferno on android. linux-dev-names

We in fact use /dev/graphics/fb0, not /dev/fb0; see
emu/Android/framebuffer.c. It does seem that I forgot to update the
error message, though.

John

On Mon, Jan 30, 2012 at 12:48 AM, - - <basmp@...> wrote:
> i suggest do not embed names of Linux devices to source code, but use a configuration file to read it at boot
time. for example, i not have /dev/fb0, but have /dev/graphics/fb0 on my moto droid2 (perhaps there are
other differences. i don't have environment to rebuild now).
> in any case, it is not very convenient - recompile for each device for a pair of strings.
>
> thanks

- - | 31 Jan 09:38
Picon

Re: inferno on android. linux-dev-names

hmm. not working for me in both user and root (su) modes.
in attach logs for user (a.u.txt) and root (a.r.txt) modes

which environment you used for build? linux + sources from https://bitbucket.org/floren/inferno +
standard android ndk? can you give me addition needed files (without need to download full android
source)? if there needing to recompile phone-linux kernel? moto droids not allow this.

thanks
read ro.product.device = cdma_droid2
setegid(1001) failed: Operation not permitted
seteuid(1001) failed: Operation not permitted
socket_local_client failed: Permission denied
seteuid(0) failed: Operation not permitted
setegid(0) failed: Operation not permitted
could not open event device: Permission denied
fs: fsqid: top-bit dev: 0xb338
wm/wm
read -1 instead of 16
loop_for_data: Bad file number
EOF while reading parcel length
read returned -1
; can't open a file /dev/fb0: Permission denied
wmlib: can't allocate Display: initdisplay: /dev/draw/new: bad channel descriptor 00000000
; read -1 instead of 16
read -1 instead of 16
read -1 instead of 16
read -1 instead of 16
read -1 instead of 16
read -1 instead of 16
(Continue reading)

John Floren | 31 Jan 16:45
Favicon

Re: inferno on android. linux-dev-names

On Tue, Jan 31, 2012 at 12:38 AM, - - <basmp@...> wrote:
> hmm. not working for me in both user and root (su) modes.
> in attach logs for user (a.u.txt) and root (a.r.txt) modes
>
> which environment you used for build? linux + sources from https://bitbucket.org/floren/inferno +
standard android ndk? can you give me addition needed files (without need to download full android
source)? if there needing to recompile phone-linux kernel? moto droids not allow this.
>
> thanks

Try commenting out "wifi" in emu/Android/emu-g, then run as root.

I built on Linux, using the full Android source (not the NDK).
Unfortunately, I can't be sure what additional files you'd need in
order to use the NDK rather than the full source.

There should be no need to recompile the kernel.

John


Gmane