Boot OE from a CompactFlash card

View: New views
12 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

Re: Boot OE from a CompactFlash card

by gordu :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hmm...running out of ideas here. Part of my problem is I have a mmc card not a CF card. Can you from the u-boot cmd line do
   - pinit on
   - fatls ide 0

Also when you created the partitions on your CF card you made the first one a fat partition right? u-boot I seem to recall only has support for fat, although u-boot seems to understand your CF enough to read the gumstix-factory.script.

gord u

On Wed, May 21, 2008 at 1:31 PM, Scott Lerman <smlerman@...> wrote:
On Wed, May 21, 2008 at 4:25 PM, Gord Urquhart <gordurq@...> wrote:
> Scott
>
>   You appear to be dying in the gumstix-factory.script trying to find a mmc
> card instead of a CF card.
>   What does your gumstix-factory.script look like?  It should have something
> like
>
> set workedok Failed
> if pinit on; then
>        setenv bootargs console=ttyS0,115200n8 rootdelay=1 root=/dev/hda2
>        if fatload ide 0 a2000000 uimage; then
>                set workedok Success
>        fi
> fi
> bootm a2000000
>
>
> gord u
>
> On Wed, May 21, 2008 at 12:08 PM, Scott Lerman <smlerman@...> wrote:
>>
>> Here's the console stuff:
>>
>> U-Boot 1.1.4 (Nov  6 2006 - 11:20:03) - 400 MHz - 1161
>>
>> *** Welcome to Gumstix ***
>>
>> U-Boot code: A3F00000 -> A3F25DE4  BSS: -> A3F5AF00
>> RAM Configuration:
>> Bank #0: a0000000 64 MB
>> Flash: 16 MB
>> Using default environment
>>
>> SMC91C1111-0
>> Net:   SMC91C1111-0
>> Hit any key to stop autoboot:  0
>> Instruction Cache is ON
>> Found gumstix-factory.script on CF...
>> ## Executing script at a2000000
>> No MMC card found
>> unknown card type
>> ### JFFS2 loading 'boot/uImage' to 0xa2000000
>> Scanning JFFS2 FS: ..... done.
>> ### JFFS2 load complete: 784636 bytes loaded to 0xa2000000
>> ## Booting image at a2000000 ...
>>   Image Name:   uImage
>>   Image Type:   ARM Linux Kernel Image (uncompressed)
>>   Data Size:    784572 Bytes = 766.2 kB
>>   Load Address: a0008000
>>   Entry Point:  a0008000
>> OK
>>
>> Starting kernel ...
>>
>> As an aside, is it possible to use the USB port on the console board
>> to do this, or does it only work with the regular serial ports?
>>
>> As an even farther aside, does anyone else have trouble keeping the
>> boards connected to each other when you're pulling out the power
>> cable?
>>
>> --
>> Scott Lerman
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> gumstix-users mailing list
>> gumstix-users@...
>> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> gumstix-users mailing list
> gumstix-users@...
> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>
>

Here's gumstix-factory.script from the CF card:

# tests for mmc card presence to determine if booting from mmc or cf

# so we can set the command line accordingly.

# the command line is used by initramfs' /init script to load the

# correct set of modules# if neither mmc or cf exist, then boot the
flash file system from jffs2

if mmcinit; then

setenv bootargs rw console=ttyS0,115200n8 reboot=cold,hard MEDIA=MMC

fatload mmc 0 a1000000 uImage; && fatload mmc 0 a2000000 ramdisk.img

else

if pinit on; then

setenv bootargs rw console=ttyS0,115200n8 reboot=cold,hard MEDIA=CF

fatload ide 0 a1000000 uImage; && fatload ide 0 a2000000 ramdisk.img

else

setenv bootargs root=1f01 rootfstype=jffs2 console=ttyS0,115200n8
reboot=cold,hard

fsload && bootm

fi

fi

bootm a1000000 a2000000


--
Scott Lerman

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users

Re: Boot OE from a CompactFlash card

by Dave Hylands :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi guys,

On Wed, May 21, 2008 at 2:19 PM, Gord Urquhart <gordurq@...> wrote:
> Hmm...running out of ideas here. Part of my problem is I have a mmc card not
> a CF card. Can you from the u-boot cmd line do
>    - pinit on
>    - fatls ide 0

Also, presumably, the fact that you're running the gumstix-factory
script means that pinit on was already done by u-boot before the
script is running, so try removing the mmc stuff and the pinit on from
your factory script.

I seem to recall some issues with some versions of u-boot related to
issuing multiple pinit on commands, but things are hazy...

--
Dave Hylands
Vancouver, BC, Canada
http://www.DaveHylands.com/

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users

Re: Boot OE from a CompactFlash card

by Marc Humphreys :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Any reason you haven’t upgraded to u-boot 1.2? You may have an easier time with all this if you tried using u-boot 1.2

 

Marc

 

 

 


From: gumstix-users-bounces@... [mailto:gumstix-users-bounces@...] On Behalf Of Gord Urquhart
Sent: Wednesday, May 21, 2008 5:20 PM
To: General mailing list for gumstix users.
Subject: Re: [Gumstix-users] Boot OE from a CompactFlash card

 

Hmm...running out of ideas here. Part of my problem is I have a mmc card not a CF card. Can you from the u-boot cmd line do
   - pinit on
   - fatls ide 0

Also when you created the partitions on your CF card you made the first one a fat partition right? u-boot I seem to recall only has support for fat, although u-boot seems to understand your CF enough to read the gumstix-factory.script.

gord u

On Wed, May 21, 2008 at 1:31 PM, Scott Lerman <smlerman@...> wrote:

On Wed, May 21, 2008 at 4:25 PM, Gord Urquhart <gordurq@...> wrote:
> Scott
>
>   You appear to be dying in the gumstix-factory.script trying to find a mmc
> card instead of a CF card.
>   What does your gumstix-factory.script look like?  It should have something
> like
>
> set workedok Failed
> if pinit on; then
>        setenv bootargs console=ttyS0,115200n8 rootdelay=1 root=/dev/hda2
>        if fatload ide 0 a2000000 uimage; then
>                set workedok Success
>        fi
> fi
> bootm a2000000
>
>
> gord u
>
> On Wed, May 21, 2008 at 12:08 PM, Scott Lerman <smlerman@...> wrote:
>>
>> Here's the console stuff:
>>
>> U-Boot 1.1.4 (Nov  6 2006 - 11:20:03) - 400 MHz - 1161
>>
>> *** Welcome to Gumstix ***
>>
>> U-Boot code: A3F00000 -> A3F25DE4  BSS: -> A3F5AF00
>> RAM Configuration:
>> Bank #0: a0000000 64 MB
>> Flash: 16 MB
>> Using default environment
>>
>> SMC91C1111-0
>> Net:   SMC91C1111-0
>> Hit any key to stop autoboot:  0
>> Instruction Cache is ON
>> Found gumstix-factory.script on CF...
>> ## Executing script at a2000000
>> No MMC card found
>> unknown card type
>> ### JFFS2 loading 'boot/uImage' to 0xa2000000
>> Scanning JFFS2 FS: ..... done.
>> ### JFFS2 load complete: 784636 bytes loaded to 0xa2000000
>> ## Booting image at a2000000 ...
>>   Image Name:   uImage
>>   Image Type:   ARM Linux Kernel Image (uncompressed)
>>   Data Size:    784572 Bytes = 766.2 kB
>>   Load Address: a0008000
>>   Entry Point:  a0008000
>> OK
>>
>> Starting kernel ...
>>
>> As an aside, is it possible to use the USB port on the console board
>> to do this, or does it only work with the regular serial ports?
>>
>> As an even farther aside, does anyone else have trouble keeping the
>> boards connected to each other when you're pulling out the power
>> cable?
>>
>> --
>> Scott Lerman
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2008.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> gumstix-users mailing list
>> gumstix-users@...
>> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> gumstix-users mailing list
> gumstix-users@...
> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>
>

Here's gumstix-factory.script from the CF card:

# tests for mmc card presence to determine if booting from mmc or cf

# so we can set the command line accordingly.

# the command line is used by initramfs' /init script to load the

# correct set of modules# if neither mmc or cf exist, then boot the
flash file system from jffs2

if mmcinit; then

setenv bootargs rw console=ttyS0,115200n8 reboot=cold,hard MEDIA=MMC

fatload mmc 0 a1000000 uImage; && fatload mmc 0 a2000000 ramdisk.img

else

if pinit on; then

setenv bootargs rw console=ttyS0,115200n8 reboot=cold,hard MEDIA=CF

fatload ide 0 a1000000 uImage; && fatload ide 0 a2000000 ramdisk.img

else

setenv bootargs root=1f01 rootfstype=jffs2 console=ttyS0,115200n8
reboot=cold,hard

fsload && bootm

fi

fi

bootm a1000000 a2000000


--

Scott Lerman

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users

 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users

Re: Boot OE from a CompactFlash card

by Scott Lerman-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, May 21, 2008 at 6:21 PM, Marc Humphreys
<mhumphreys@...> wrote:
> Any reason you haven't upgraded to u-boot 1.2? You may have an easier time
> with all this if you tried using u-boot 1.2
>
>
>
> Marc

I think because upgrading u-boot requires a serial connection, which I
was originally hoping not to have to deal with. My ideal goal is also
to have to do nothing besides making a copy of the CF card, since the
plan is to kinda-mass purchase gumstix boards.

Thanks for the other suggestions. I'll give them a shot tomorrow.

--
Scott Lerman

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users

Re: Boot OE from a CompactFlash card

by Scott Lerman-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

So I went to do stuff today, and I think I fried the board. I got this once:

U-Boot 1.1.4 (Nov  6 2006 - 11:20:03) - 400 MHz - 1161

*** Welcome to Gumstix ***

U-Boot code: A3F00000 -> A3F25DE4  BSS: -> A3F5AF00
RAM Configuration:
Bank #0: a0000000 64 MB
Flash: 16 MB
Using default environment

SMC91C1111-0
Net:   SMC91C1111-0
Hit any key to stop autoboot:  1

And now when I connect to the serial port, I get one weird character
(I can't tell what the byte value is), then nothing when I power up
the board. Am I right in thinking that the base board is fried? I
think it happened because the netcf board came off when I was plugging
in the power cord, which has happened pretty frequently. Any advice
for keeping the boards together?

--
Scott Lerman

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users

Re: Boot OE from a CompactFlash card

by Drew-43 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

They sell a little spacer set on the gumstix site, comes with plastic
spacers and mini nut and bolts.

-----Original Message-----
From: gumstix-users-bounces@...
[mailto:gumstix-users-bounces@...] On Behalf Of Scott
Lerman
Sent: 22 May 2008 16:00
To: General mailing list for gumstix users.
Subject: Re: [Gumstix-users] Boot OE from a CompactFlash card

So I went to do stuff today, and I think I fried the board. I got this once:

U-Boot 1.1.4 (Nov  6 2006 - 11:20:03) - 400 MHz - 1161

*** Welcome to Gumstix ***

U-Boot code: A3F00000 -> A3F25DE4  BSS: -> A3F5AF00
RAM Configuration:
Bank #0: a0000000 64 MB
Flash: 16 MB
Using default environment

SMC91C1111-0
Net:   SMC91C1111-0
Hit any key to stop autoboot:  1

And now when I connect to the serial port, I get one weird character
(I can't tell what the byte value is), then nothing when I power up
the board. Am I right in thinking that the base board is fried? I
think it happened because the netcf board came off when I was plugging
in the power cord, which has happened pretty frequently. Any advice
for keeping the boards together?

--
Scott Lerman

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users

Re: Boot OE from a CompactFlash card

by Scott Lerman-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, May 22, 2008 at 11:25 AM, Drew <dr3w@...> wrote:
> They sell a little spacer set on the gumstix site, comes with plastic
> spacers and mini nut and bolts.
>

Is this what you're talking about?

http://gumstix.com/store/catalog/product_info.php?cPath=28&products_id=161

--
Scott Lerman

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users

Re: Boot OE from a CompactFlash card

by Scott Lerman-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Finally got a replacement board and some spacers to keep me from
frying it. Here's the complete serial output I get. Seeing it stop at
the "Freeing init memory: 160K" line doesn't seem right to me.

U-Boot 1.2.0 (Dec 21 2007 - 13:31:10) - 400 MHz - 1578M

*** Welcome to Gumstix ***

DRAM:  64 MB
Flash: 16 MB
Using default environment

SMC91C1111-0
Net:   SMC91C1111-0
Hit any key to stop autoboot:  0
Instruction Cache is ON
Found gumstix-factory.script on CF...
## Executing script at a2000000
reading uImage

1129996 bytes read
reading ramdisk.img

6446457 bytes read
## Booting image at a1000000 ...
   Image Name:   Angstrom/2.6.21/gumstix-custom-c
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1129932 Bytes =  1.1 MB
   Load Address: a0008000
   Entry Point:  a0008000
OK
## Loading Ramdisk Image at a2000000 ...
   Image Name:   rootfs
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6446393 Bytes =  6.1 MB
   Load Address: 00000000
   Entry Point:  00000000

Starting kernel ...

Linux version 2.6.21 (gumstix@slerman) (gcc version 4.1.2) #1 PREEMPT
Thu May 15 14:24:47 EDT 2008
CPU: XScale-PXA255 [69052d06] revision 6 (ARMv5TE), cr=0000397f
Machine: The Gumstix Platform
Memory policy: ECC disabled, Data cache writeback
Memory clock: 99.53MHz (*27)
Run Mode clock: 398.13MHz (*4)
Turbo Mode clock: 398.13MHz (*1.0, inactive)
CPU0: D VIVT undefined 5 cache
CPU0: I cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
CPU0: D cache: 32768 bytes, associativity 32, 32 byte lines, 32 sets
Built 1 zonelists.  Total pages: 16256
Kernel command line: rw console=ttyS0,115200n8 reboot=cold,hard MEDIA=CF
PID hash table entries: 256 (order: 8, 1024 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory: 64MB = 64MB total
Memory: 56184KB available (2040K code, 195K data, 160K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16
Time: pxa_timer clocksource has been installed.
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 2, 16384 bytes)
TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
TCP: Hash tables configured (established 2048 bind 2048)
TCP reno registered
checking if image is initramfs... it is
Freeing initrd memory: 6295K
JFFS2 version 2.2. (NAND) (SUMMARY)  (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler cfq registered (default)
Console: switching to colour frame buffer device 80x24
pxa2xx-uart.0: ttyS0 at MMIO 0x40100000 (irq = 15) is a FFUART
pxa2xx-uart.1: ttyS1 at MMIO 0x40200000 (irq = 14) is a BTUART
pxa2xx-uart.2: ttyS2 at MMIO 0x40700000 (irq = 13) is a STUART
pxa2xx-uart.3: ttyS3 at MMIO 0x41600000 (irq = 0) is a HWUART
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: loaded (max 8 devices)
Probing Gumstix Flash ROM at physical address 0x00000000 (16-bit bankwidth)
Gumstix Flash ROM: Found 1 x16 devices at 0x0 in 16-bit bank
 Intel/Sharp Extended Query Table at 0x0031
Using buffer write method
cfi_cmdset_0001: Erase suspend on write enabled
Using static partitions on Gumstix Flash ROM
Creating 3 MTD partitions on "Gumstix Flash ROM":
0x00000000-0x00040000 : "Bootloader"
0x00040000-0x00f00000 : "RootFS"
0x00f00000-0x01000000 : "Kernel"
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
XScale DSP coprocessor detected.
Freeing init memory: 160K


--
Scott Lerman

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users

Re: Boot OE from a CompactFlash card

by Chris Dollar :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Scott,

On Thu, Jun 5, 2008 at 8:34 AM, Scott Lerman <smlerman@...> wrote:
Finally got a replacement board and some spacers to keep me from
frying it. Here's the complete serial output I get. Seeing it stop at
the "Freeing init memory: 160K" line doesn't seem right to me.

Did you build the filesystem image yourself, or are you using one of the premade ones from gumstix.net? If you built it yourself it could be that you have /bin/sh linked to dash as is common on ubuntu.  If you build an image with dash as your shell it will build, but booting will freeze at freeing init memory.  Might be worth a quick check to see if thats the case for your build...

Chris

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users

Re: Boot OE from a CompactFlash card

by Scott Lerman-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Jun 5, 2008 at 10:41 AM, Chris Dollar <chris.dollar@...> wrote:

> Hi Scott,
>
> On Thu, Jun 5, 2008 at 8:34 AM, Scott Lerman <smlerman@...> wrote:
>>
>> Finally got a replacement board and some spacers to keep me from
>> frying it. Here's the complete serial output I get. Seeing it stop at
>> the "Freeing init memory: 160K" line doesn't seem right to me.
>>
> Did you build the filesystem image yourself, or are you using one of the
> premade ones from gumstix.net? If you built it yourself it could be that you
> have /bin/sh linked to dash as is common on ubuntu.  If you build an image
> with dash as your shell it will build, but booting will freeze at freeing
> init memory.  Might be worth a quick check to see if thats the case for your
> build...
>
> Chris
>
> -------------------------------------------------------------------------
> Check out the new SourceForge.net Marketplace.
> It's the best place to buy or sell services for
> just about anything Open Source.
> http://sourceforge.net/services/buy/index.php
> _______________________________________________
> gumstix-users mailing list
> gumstix-users@...
> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>
>

I thought I had made sure to do the fix for the sh/dash issue, but
I'll check it again. Thanks.

--
Scott Lerman

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users

Re: Boot OE from a CompactFlash card

by Scott Lerman-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Jun 5, 2008 at 10:50 AM, Scott Lerman <smlerman@...> wrote:

> On Thu, Jun 5, 2008 at 10:41 AM, Chris Dollar <chris.dollar@...> wrote:
>> Hi Scott,
>>
>> On Thu, Jun 5, 2008 at 8:34 AM, Scott Lerman <smlerman@...> wrote:
>>>
>>> Finally got a replacement board and some spacers to keep me from
>>> frying it. Here's the complete serial output I get. Seeing it stop at
>>> the "Freeing init memory: 160K" line doesn't seem right to me.
>>>
>> Did you build the filesystem image yourself, or are you using one of the
>> premade ones from gumstix.net? If you built it yourself it could be that you
>> have /bin/sh linked to dash as is common on ubuntu.  If you build an image
>> with dash as your shell it will build, but booting will freeze at freeing
>> init memory.  Might be worth a quick check to see if thats the case for your
>> build...
>>
>> Chris
>>
>> -------------------------------------------------------------------------
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://sourceforge.net/services/buy/index.php
>> _______________________________________________
>> gumstix-users mailing list
>> gumstix-users@...
>> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>>
>>
>
> I thought I had made sure to do the fix for the sh/dash issue, but
> I'll check it again. Thanks.
>
> --
> Scott Lerman
>

I got farther this time. I did a bitbake gumstix-basic-image,
repopulated the rootfs/dev directory (as the how-to at
http://www.klc.net.nz/linux/?page_id=10 says to do), and copied
everything in rootfs over to the CF card.

Here's everything after the line where it froze before. Not quite sure
what the problem is. Physically damaged CF card maybe?

/init script running...
done
 [*] mounting /proc...done
 [*] mounting /sys...done
 [*] starting udevd...done
 [*] Found MEDIA=CF
 [*] loading pcmcia module...done
 [*] loading pxa2xx_cs module...CPLD responded with: 00
done
 [*] loading ide-cs module...Uniform Multi-Platform E-IDE driver
Revision: 7.00alpha2
ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
done
 [*] loading ide-disk module...done
[*] Checking to see if CF Card is registered...
pccard: PCMCIA card inserted into slot 0
pcmcia: registering new device pcmcia0.0
hda: SanDisk SDCFB-512, CFA DISK drive
ide0 at 0xc4860000-0xc4860007,0xc486000e on irq 49
hda: max request size: 128KiB
hda: 1000944 sectors (512 MB) w/1KiB Cache, CHS=993/16/63
 hda: hda1 hda2
ide-cs: hda: Vpp = 0.0
FAT: invalid media value (0x01)
VFS: Can't find a valid FAT filesystem on dev hda.
kjournald starting.  Commit interval 5 seconds
EXT3 FS on hda2, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
[*] CF Card Registered
 [*] mounting /dev/hda2 to /rfs...done
 [*] Cleaning up...warning: can't open /etc/mtab: No such file or directory
warning: can't open /etc/mtab: No such file or directory
done
 [*] Switching to real root fs...
pxa2xx_udc: version 4-May-2005
udhcpc[1134]: udhcpc (v1.2.1) started
udhcpc[1134]: SIOCGIFINDEX failed!: No such device
pccard: card ejected from slot 0
EXT3-fs error (device hda2): ext3_find_entry: reading directory #59393 offset 0
Buffer I/O error on device hda2, logical block 1
lost page write due to I/O error on hda2
modprobe: WARNING: Error running install command for cfio

EXT3-fs error (device hda2): ext3_find_entry: reading directory #75791 offset 0
Buffer I/O error on device hda2, logical block 1
lost page write due to I/O error on hda2
EXT3-fs error (device hda2): ext3_find_entry: reading directory #59393 offset 0
Buffer I/O error on device hda2, logical block 1
lost page write due to I/O error on hda2
modprobe: FATAL: Could not open '/lib/modules/2.6.21/extra/mcf25.ko':
No such file or directory

Buffer I/O error on device hda2, logical block 213505
lost page write due to I/O error on hda2
journal_bmap: journal block not found at offset 332 on hda2
Aborting journal on device hda2.
Buffer I/O error on device hda2, logical block 532
lost page write due to I/O error on hda2
journal commit I/O error
ext3_abort called.
EXT3-fs error (device hda2): ext3_journal_start_sb: Detected aborted journal
Remounting filesystem read-only
EXT3-fs error (device hda2): ext3_find_entry: reading directory #59393 offset 0
EXT3-fs error (device hda2): ext3_find_entry: reading directory #75814 offset 0
EXT3-fs error (device hda2): ext3_find_entry: reading directory #4097 offset 0
EXT3-fs error (device hda2): ext3_find_entry: reading directory #4097 offset 0
EXT3-fs error (device hda2): ext3_find_entry: reading directory #28673 offset 0
INIT: Entering runlevel: 5
INIT: cannot execute "/etc/init.d/rc"
INIT: cannot execute "/sbin/getty"
INIT: cannot execute "/sbin/getty"
INIT: cannot execute "/sbin/getty"
INIT: cannot execute "/sbin/getty"
INIT: cannot execute "/sbin/getty"
INIT: cannot execute "/sbin/getty"
INIT: cannot execute "/sbin/getty"
INIT: cannot execute "/sbin/getty"
INIT: cannot execute "/sbin/getty"
INIT: Id "S" respawning too fast: disabled for 5 minutes
INIT: no more processes left in this runlevel
Buffer I/O error on device hda2, logical block 212995
lost page write due to I/O error on hda2


--
Scott Lerman

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users

Re: Boot OE from a CompactFlash card

by Scott Lerman-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thu, Jun 5, 2008 at 4:33 PM, Scott Lerman <smlerman@...> wrote:

> On Thu, Jun 5, 2008 at 10:50 AM, Scott Lerman <smlerman@...> wrote:
>> On Thu, Jun 5, 2008 at 10:41 AM, Chris Dollar <chris.dollar@...> wrote:
>>> Hi Scott,
>>>
>>> On Thu, Jun 5, 2008 at 8:34 AM, Scott Lerman <smlerman@...> wrote:
>>>>
>>>> Finally got a replacement board and some spacers to keep me from
>>>> frying it. Here's the complete serial output I get. Seeing it stop at
>>>> the "Freeing init memory: 160K" line doesn't seem right to me.
>>>>
>>> Did you build the filesystem image yourself, or are you using one of the
>>> premade ones from gumstix.net? If you built it yourself it could be that you
>>> have /bin/sh linked to dash as is common on ubuntu.  If you build an image
>>> with dash as your shell it will build, but booting will freeze at freeing
>>> init memory.  Might be worth a quick check to see if thats the case for your
>>> build...
>>>
>>> Chris
>>>
>>> -------------------------------------------------------------------------
>>> Check out the new SourceForge.net Marketplace.
>>> It's the best place to buy or sell services for
>>> just about anything Open Source.
>>> http://sourceforge.net/services/buy/index.php
>>> _______________________________________________
>>> gumstix-users mailing list
>>> gumstix-users@...
>>> https://lists.sourceforge.net/lists/listinfo/gumstix-users
>>>
>>>
>>
>> I thought I had made sure to do the fix for the sh/dash issue, but
>> I'll check it again. Thanks.
>>
>> --
>> Scott Lerman
>>
>
> I got farther this time. I did a bitbake gumstix-basic-image,
> repopulated the rootfs/dev directory (as the how-to at
> http://www.klc.net.nz/linux/?page_id=10 says to do), and copied
> everything in rootfs over to the CF card.
>
> Here's everything after the line where it froze before. Not quite sure
> what the problem is. Physically damaged CF card maybe?
>
> /init script running...
> done
>  [*] mounting /proc...done
>  [*] mounting /sys...done
>  [*] starting udevd...done
>  [*] Found MEDIA=CF
>  [*] loading pcmcia module...done
>  [*] loading pxa2xx_cs module...CPLD responded with: 00
> done
>  [*] loading ide-cs module...Uniform Multi-Platform E-IDE driver
> Revision: 7.00alpha2
> ide: Assuming 50MHz system bus speed for PIO modes; override with idebus=xx
> done
>  [*] loading ide-disk module...done
> [*] Checking to see if CF Card is registered...
> pccard: PCMCIA card inserted into slot 0
> pcmcia: registering new device pcmcia0.0
> hda: SanDisk SDCFB-512, CFA DISK drive
> ide0 at 0xc4860000-0xc4860007,0xc486000e on irq 49
> hda: max request size: 128KiB
> hda: 1000944 sectors (512 MB) w/1KiB Cache, CHS=993/16/63
>  hda: hda1 hda2
> ide-cs: hda: Vpp = 0.0
> FAT: invalid media value (0x01)
> VFS: Can't find a valid FAT filesystem on dev hda.
> kjournald starting.  Commit interval 5 seconds
> EXT3 FS on hda2, internal journal
> EXT3-fs: mounted filesystem with ordered data mode.
> [*] CF Card Registered
>  [*] mounting /dev/hda2 to /rfs...done
>  [*] Cleaning up...warning: can't open /etc/mtab: No such file or directory
> warning: can't open /etc/mtab: No such file or directory
> done
>  [*] Switching to real root fs...
> pxa2xx_udc: version 4-May-2005
> udhcpc[1134]: udhcpc (v1.2.1) started
> udhcpc[1134]: SIOCGIFINDEX failed!: No such device
> pccard: card ejected from slot 0
> EXT3-fs error (device hda2): ext3_find_entry: reading directory #59393 offset 0
> Buffer I/O error on device hda2, logical block 1
> lost page write due to I/O error on hda2
> modprobe: WARNING: Error running install command for cfio
>
> EXT3-fs error (device hda2): ext3_find_entry: reading directory #75791 offset 0
> Buffer I/O error on device hda2, logical block 1
> lost page write due to I/O error on hda2
> EXT3-fs error (device hda2): ext3_find_entry: reading directory #59393 offset 0
> Buffer I/O error on device hda2, logical block 1
> lost page write due to I/O error on hda2
> modprobe: FATAL: Could not open '/lib/modules/2.6.21/extra/mcf25.ko':
> No such file or directory
>
> Buffer I/O error on device hda2, logical block 213505
> lost page write due to I/O error on hda2
> journal_bmap: journal block not found at offset 332 on hda2
> Aborting journal on device hda2.
> Buffer I/O error on device hda2, logical block 532
> lost page write due to I/O error on hda2
> journal commit I/O error
> ext3_abort called.
> EXT3-fs error (device hda2): ext3_journal_start_sb: Detected aborted journal
> Remounting filesystem read-only
> EXT3-fs error (device hda2): ext3_find_entry: reading directory #59393 offset 0
> EXT3-fs error (device hda2): ext3_find_entry: reading directory #75814 offset 0
> EXT3-fs error (device hda2): ext3_find_entry: reading directory #4097 offset 0
> EXT3-fs error (device hda2): ext3_find_entry: reading directory #4097 offset 0
> EXT3-fs error (device hda2): ext3_find_entry: reading directory #28673 offset 0
> INIT: Entering runlevel: 5
> INIT: cannot execute "/etc/init.d/rc"
> INIT: cannot execute "/sbin/getty"
> INIT: cannot execute "/sbin/getty"
> INIT: cannot execute "/sbin/getty"
> INIT: cannot execute "/sbin/getty"
> INIT: cannot execute "/sbin/getty"
> INIT: cannot execute "/sbin/getty"
> INIT: cannot execute "/sbin/getty"
> INIT: cannot execute "/sbin/getty"
> INIT: cannot execute "/sbin/getty"
> INIT: Id "S" respawning too fast: disabled for 5 minutes
> INIT: no more processes left in this runlevel
> Buffer I/O error on device hda2, logical block 212995
> lost page write due to I/O error on hda2
>
>
> --
> Scott Lerman
>

Any ideas on these errors?

--
Scott Lerman

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
gumstix-users mailing list
gumstix-users@...
https://lists.sourceforge.net/lists/listinfo/gumstix-users
< Prev | 1 - 2 | Next >
LightInTheBox - Buy quality products at wholesale price