Hello,

Thanks for everyone's advice.  I was traveling yesterday and missed the 
converstation, but just caught up now.  From what I read, I will try the 
following:

1) After writing to the SD card, close all files.
2) unmount the sd card
3) sleep for 10 seconds
4) send reboot command
5) once out of uClinux, de-power the board

Does this look OK?

Regarding closing the files, I don't directly open any.  I just cd into the sd 
card and use wget to grab them from another device, and then I cp them to 
another file name, as follows:


--from the root folder--
cd /mnt/sd/folder1
wget http://10.0.0.24/this_file.hex
cp this_file.hex file1.hex
rm this_file.hex

Do you think it would be safer NOT to first cd into the sd card?  Perhaps do 
all the work outside the sd card, then the cp command will be the only command 
that puts the files onto the sd card..?  Like this:

--from the root folder--
wget http://10.0.0.24/this_file.hex
cp this_file.hex /mnt/sd/folder1/file1.hex
rm this_file.hex

-----
Allon Stern wrote:

Maybe there's some issue with the unmount?
Anything special in the console log?

**I copied below, the console log while booting into and rebooting out of 
uClinux.

If you can "unmount" the drive, then reboot, that would be a fair  
first step.

**Thanks, I added that to the sequence above.

-----

-----
Wolfgang Mues wrote:

Have you mounted the SD card with the option "noatime"?

**I don't believe so.  Will the console log tell us below.

-----


Tom


CONSOLE LOG:

------BOOTING-------
dBUG> gfl xf
Compressed image found
Copying image from xFlash to 10F2AA2F in RAM...........
Decompressing image to 10020000 in RAM......
Linux version 2.6.19-uc1 (r...@moe) (gcc version 4.1.1) #37 Sun Mar 15 13:07:17 
PST 2009

 

uClinux/COLDFIRE(m5280/5282)
COLDFIRE port done by Greg Ungerer, [email protected]
Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne
Built 1 zonelists.  Total pages: 4064
Kernel command line: root=/dev/mtdblock1 rootfstype=jffs2 rw 
rtc-pcf8563.probe=0,0x51
PID hash table entries: 64 (order: 6, 256 bytes)
Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
Memory available: 14384k/16384k RAM, (1529k kernel code, 183k data)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 0, 4096 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
JFFS2 version 2.2. (NAND) (C) 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler cfq registered (default)
MCF IPS device driver installed
ColdFire internal UART serial driver
ttyS0 at MMIO 0x40000200 (irq = 77) is a ColdFire UART
ttyS1 at MMIO 0x40000240 (irq = 78) is a ColdFire UART
ttyS2 at MMIO 0x40000280 (irq = 79) is a ColdFire UART
RAMDISK driver initialized: 4 RAM disks of 4096K size 1024 blocksize
FEC ENET Version 0.2
fec: PHY @ 0x0, ID 0x1c040011 -- STE100P
eth0: ethernet 00:14:15:01:ff:b2
PPP generic driver version 2.4.2
m25p80 spi1.0: m25p32 (4096 Kbytes)
Creating 3 MTD partitions on "ST M25P80 SPI Flash chip":
0x00300000-0x00400000 : "kernel"
0x00000000-0x00300000 : "image"
0x00000000-0x00400000 : "all"
SPI: Coldfire master initialized
mmc_spi spi1.1: SD/MMC <-> SPI proxy driver, no card power management
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
VFS: Mounted root (jffs2 filesystem).
Freeing unused kernel memory: 56k freed (0x101af000 - 0x101bc000)
mmcblk0: mmc0:0000 SD02G 1931264KiB 
 mmcblk0: p1
VFS: Can't find ext3 filesystem on dev mmcblk0p1.
VFS: Can't find an ext2 filesystem on dev mmcblk0p1.
Mounted /dev/mmc1 as /mnt/sd OK
/mnt/sd/boot found and writable
eth0: config: auto-negotiation on, 100FDX, 100HDX, 10FDX, 10HDX.
Welcome to
          ____ _  _
         /  __| ||_|                 
    _   _| |  | | _ ____  _   _  _  _ 
   | | | | |  | || |  _ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/    \
   |  ___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|
 
For further information check:
http://www.uclinux.org/
 
/bin/data: not found
init: Booting to single user mode
 

BusyBox v1.00 (2007.08.01-18:03+0000) Built-in shell (msh)
Enter 'help' for a list of built-in commands.
 

# reboot
 
----REBOOTING----

The system is going down NOW !!
 
Sending SIGTERM to all processes.
Nov 30 00:00:32 dhcpcd[48]: terminating on signal 15
 
 
 
Sending SIGKILL to all processes.
 

BusyBox v1.00 (2007.08.01-18:03+0000) Built-in shell (msh)
Enter 'help' for a list of built-in commands.
 
# Restarting system.
ΓΏ
 
Software Reset
 
ColdFire MCF5282 on the Wildfire
Firmware v3d.1b.1c (Build 746 on Jun  3 2008 20:52:58)
Copyright 1995-2003 Motorola, Inc.  All Rights Reserved.
 
SD Card detected - 1977614336 bytes
Enter 'help' for help.
 
dBUG> 
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to