Roger Andersen | 4 May 18:30
Picon
Favicon

file system corruption on reset - map root file system readonly?


I'm using a Compulab iGLX board with an AMD Geode LX800 CPU running Gentoo.
When I power-cycle the board without a clean shutdown (or sometimes even
with one), the file system always gets corrupted in some way, and Linux
struggles mightily to come back to life. 

The vendor suggests that I need to modify the Linux installation so that the
root file system is mounted read-only - but they offer no clue how to do
this (which makes me think they don't know how to do it themselves). 

I've searched for techniques, and found things are that are close, but so
far, no cigar.

1. Is there a standard way to go about this with Gentoo Linux?

2. Am I missing something blindingly obvious here as far as using
Gentoo/Linux file systems in embedded systems where the CPU will almost
never get any warning before a system reset? I know it's possible to do this
successfully but I can't get over the goal line with this iGLX board.

Thank you for any advice in advance -
Roger

John Lowry | 4 May 20:21

Android support

Has there been any discussion of coming up with cross compiler support 
for the Android platform? I know the Android SDK is in portage, I 
talking about building native program against the C library the Android 
platfor, Bionic. People with either rooted G1s, dev phones, or some 
other platform it would be nice to have other programs on there. Here is 
some CPU info:

$ cat /proc/cpuinfo
Processor       : ARMv6-compatible processor rev 2 (v6l)
BogoMIPS: 245.36
Features: swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 6TEJ
CPU part: 0xb36
CPU revision    : 2
Cache type      : write-back
Cache clean     : cp15 c7 ops
Cache lockdown  : format C
Cache format    : Harvard
I size  : 32768
I assoc : 4
I line length   : 32
I sets  : 256
D size  : 32768
D assoc : 4
D line length   : 32
D sets  : 256

Hardware: trout
Revision: 0080
(Continue reading)

Ned Ludd | 4 May 20:32
Picon
Favicon

Re: Android support

On Mon, 2009-05-04 at 11:21 -0700, John Lowry wrote:
> Has there been any discussion of coming up with cross compiler support 
> for the Android platform?

Whats missing? 
armv6j as a cross compiler works fine. You mean the java bits?

Picon

Re: Android support

On Monday 04 May 2009 21:21:07 John Lowry wrote:
> Has there been any discussion of coming up with cross compiler support
> for the Android platform? I know the Android SDK is in portage, I
> talking about building native program against the C library the Android
> platfor, Bionic. People with either rooted G1s, dev phones, or some
> other platform it would be nice to have other programs on there. Here is
> some CPU info:
>
> $ cat /proc/cpuinfo
> Processor       : ARMv6-compatible processor rev 2 (v6l)
> BogoMIPS: 245.36
> Features: swp half thumb fastmult edsp java
> CPU implementer : 0x41
> CPU architecture: 6TEJ
> CPU part: 0xb36
> CPU revision    : 2
> Cache type      : write-back
> Cache clean     : cp15 c7 ops
> Cache lockdown  : format C
> Cache format    : Harvard
> I size  : 32768
> I assoc : 4
> I line length   : 32
> I sets  : 256
> D size  : 32768
> D assoc : 4
> D line length   : 32
> D sets  : 256
>
> Hardware: trout
(Continue reading)

John Lowry | 4 May 20:41

Re: Android support

I am not sure, perhaps I framed my question improperly. How about has 
anyone built a cross compiler for the android that uses Bionic as the 
libc implementation? I am trying to keep the native Android system with 
binaries built from portage.

Ned Ludd wrote:
> On Mon, 2009-05-04 at 11:21 -0700, John Lowry wrote:
>   
>> Has there been any discussion of coming up with cross compiler support 
>> for the Android platform?
>>     
>
> Whats missing? 
> armv6j as a cross compiler works fine. You mean the java bits?
>
>
>
>
>
>   

Picon

Re: Android support

On 04.05.2009 20:41, John Lowry wrote:
> I am not sure, perhaps I framed my question improperly. How about has 
> anyone built a cross compiler for the android that uses Bionic as the 
> libc implementation? I am trying to keep the native Android system 
> with binaries built from portage.
You won't be able to create a cross-compile environment using crossdev 
because crossdev doesn't support bionic as  c library. (at least as far 
as i know?) Maybe somewhere is a ready to use cross-compile environment 
that you can use to play around?

Another question: Why do you insist on using bionic? Why not use one of 
the other libc-implementations that are known to work? Just as solar 
said arm6j should be perfectly fine.
>
> Ned Ludd wrote:
>> On Mon, 2009-05-04 at 11:21 -0700, John Lowry wrote:
>>> Has there been any discussion of coming up with cross compiler 
>>> support for the Android platform?
>>
>> Whats missing? armv6j as a cross compiler works fine. You mean the 
>> java bits?
>>
>>
>>
>>
>>
>
>
>

(Continue reading)

Peter Stuge | 4 May 23:16
Picon

Re: Android support

Maksim 'max_posedon' Melnikau wrote:
> if I'm not mistaken they have even separate libc (neither glibc,
> neither uclibc).

Correct. I had a quick look and the libc has a bunch of NetBSD
strings in it.

//Peter
Mike Frysinger | 5 May 07:43
Picon
Favicon
Gravatar

Re: file system corruption on reset - map root file system readonly?

On Monday 04 May 2009 12:30:09 Roger Andersen wrote:
> I'm using a Compulab iGLX board with an AMD Geode LX800 CPU running Gentoo.
> When I power-cycle the board without a clean shutdown (or sometimes even
> with one), the file system always gets corrupted in some way, and Linux
> struggles mightily to come back to life.
>
> The vendor suggests that I need to modify the Linux installation so that
> the root file system is mounted read-only - but they offer no clue how to
> do this (which makes me think they don't know how to do it themselves).
>
> I've searched for techniques, and found things are that are close, but so
> far, no cigar.
>
> 1. Is there a standard way to go about this with Gentoo Linux?
>
> 2. Am I missing something blindingly obvious here as far as using
> Gentoo/Linux file systems in embedded systems where the CPU will almost
> never get any warning before a system reset? I know it's possible to do
> this successfully but I can't get over the goal line with this iGLX board.

could you provide some more information ?

 - what file system format is your rootfs ?
 - what kind of storage are you using ?  (IDE/PATA/CF/FLASH/....)
 - what boot loader are you using ?
 - is the Gentoo install all standard stuff or are you using embedded 
replacements ?
 - is it normally read only or do you just want to boot it up initially that 
way ?

(Continue reading)

Beber | 5 May 20:59
X-Face
Favicon
Gravatar

uclibc-0.9.30.1 and setrlimit

Hi,

I'm searching how to resolv since some times and I think I shoud ask
for help :).

I'm cross-compilating with crossdev-wrappers from x86_64-pc-linux-gnu
to i586-geode-linux-uclibc with gcc 3.4.6-r2, kernel 2.6.28-r1 and
libc/libthread_old 0.9.30.1-r1. All almost compile fine and work good, but not software
linked with libpthread and doing setrlimit like e2fsprogs with chattr :

# chattr 
Segmentation fault

And I get the following line in dmesg :
[470178.800998] chattr[6143]: segfault at 1ffe61 ip 00000000f7f59bd0 sp 00000000ffdca3c4 error 4 in libpthread-0.9.30.1.so[f7f55000+b000]

strace give the following :

ioctl(0, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(1, SNDCTL_TMR_TIMEBASE or TCGETS, {B38400 opost isig icanon echo ...}) = 0
getpid()                                = 7492
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_STACK, {rlim_cur=2040*1024, rlim_max=RLIM_INFINITY}) = 0
rt_sigaction(SIGRTMIN, {0xf7f31109, [], SA_RESTORER, 0xf7f4766b}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0xf7f31185, [RTMIN], SA_RESTORER, 0xf7f4766b}, NULL, 8) = 0
rt_sigaction(SIGRT_2, {0xf7f3126f, [], SA_RESTORER, 0xf7f4766b}, NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0
rt_sigprocmask(SIG_UNBLOCK, [RT_1], NULL, 8) = 0
--- SIGSEGV (Segmentation fault) @ 0 (0) ---

(Continue reading)

Roger Andersen | 11 May 21:41
Picon
Favicon

Re: file system corruption on reset - map root file system readonly?


Mike Frysinger wrote:
> 
> On Monday 04 May 2009 12:30:09 Roger Andersen wrote:
>> I'm using a Compulab iGLX board with an AMD Geode LX800 CPU running
>> Gentoo.
>> When I power-cycle the board without a clean shutdown (or sometimes even
>> with one), the file system always gets corrupted in some way, and Linux
>> struggles mightily to come back to life.
>>
>> The vendor suggests that I need to modify the Linux installation so that
>> the root file system is mounted read-only - but they offer no clue how to
>> do this (which makes me think they don't know how to do it themselves).
>>
>> I've searched for techniques, and found things are that are close, but so
>> far, no cigar.
>>
>> 1. Is there a standard way to go about this with Gentoo Linux?
>>
>> 2. Am I missing something blindingly obvious here as far as using
>> Gentoo/Linux file systems in embedded systems where the CPU will almost
>> never get any warning before a system reset? I know it's possible to do
>> this successfully but I can't get over the goal line with this iGLX
>> board.
> 
> could you provide some more information ?
> 
>  - what file system format is your rootfs ?
>  - what kind of storage are you using ?  (IDE/PATA/CF/FLASH/....)
>  - what boot loader are you using ?
(Continue reading)


Gmane