Oh, I should stipulate that I also went through the sources of U-boot etc. Could it also be possible that the DataFlash "environment" section has something in it that is read during start up ?
Best Regards, Kris > -----Original Message----- > From: uclinux-dev-boun...@uclinux.org > [mailto:uclinux-dev-boun...@uclinux.org] On Behalf Of > Microbit_P43000 > Sent: Wednesday, 1 July 2009 9:13 PM > To: 'uClinux development list' > Subject: [uClinux-dev] port to Olimex SAM9-L9260 ( boot "fsck: fsck.jffs2:not > found" message) > > Hi all, > > I'm new to this list and (uC)linux overall. > > However, with some persistence (and great interest in uClinux :-) I got the > uCLinux-dist > (20080808) ported and running smoothly on the Olimex SAM9-L9260 board > (similar to Atmel AT91SAM9260-EK). > > I don't know yet how to go about patches or implementing something so my > effort can be > incorporated into future versions. I expanded the Kernel config so you can > select the > board there. > > I should enunciate that I'm not posting to cop out on a problem, on the > contrary, I want > to learn as much as possible about (uC)linux under the bonnet :-) > > My actual question is about the start up and init : > The original included Linux has root file image that goes into the 512 MB > Flash. > There are/were a few bizarre "error" messages on booting that I can't get rid > of. Since I > now run a completely different kernel and these messages stay, they must > result from some > file or script somewhere on the JFFS root image. > > I have spent days on scouring through all the init.d scripts and what have > you, and I > still can't find the source of these pests.... > > Is there anyone here that could help me, or maybe even someone that uses > AT91SAM9 ? > > The most bizarre message on boot I get is : > >>>>>>>>>> > Checking root file system...fsck 1.40-WIP (14-Nov-2006) > fsck: fsck.jffs2: not found > fsck: Error 2 while executing fsck.jffs2 for /dev/mtdblock1 > done. > <<<<<<<<<< > I can't find for the life of me where it is invoked. > > I also can't figure out how to stop these occasional messages : > JFFS2 notice: (863) check_node_data: wrong data CRC in data node at > 0x149fed7c: read..... > {although I've set the "noise" level in the kernel config to 0 (debug) for > JFFS2, > this starts after I have modified file/files on the JFFS2 image}. > > Lastly, is there anyone that can give a push in the right direction how to > turn off this > time consuming Flash check after init boot, resulting in the " Empty flash at > 0x0c89630c > ends at 0x0c896800"and the likes. These are before the "init freed" log. > > > > > I include a recent boot log for reference if anyone can give a hint : > > > RomBOOT > > >AT91Bootstrap loading from 0x8400... > > U-Boot 1.3.4-00001-g8ed2f5f-dirty (Aug 20 2008 - 18:26:55) > > DRAM: 64 MB > NAND: 512 MiB > DataFlash:AT45DB161 > Nb pages: 4096 > Page Size: 528 > Size= 2162688 bytes > Logical address: 0xD0000000 > Area 0: D0000000 to D00041FF (RO) Bootstrap > Area 1: D0004200 to D00083FF Environment > Area 2: D0008400 to D0041FFF (RO) U-Boot > Area 3: D0042000 to D0251FFF Kernel > Area 4: D0252000 to D020FFFF FS > In: serial > Out: serial > Err: serial > Net: macb0 > macb0: link up, 100Mbps full-duplex (lpa: 0x45e1) > Hit any key to stop autoboot: 3 2 1 0 > ## Booting kernel from Legacy Image at 22200000 ... > Image Name: Linux-2.6.25-uc0-my_uClinux > Image Type: ARM Linux Kernel Image (uncompressed) > Data Size: 1486708 Bytes = 1.4 MB > Load Address: 20008000 > Entry Point: 20008000 > Verifying Checksum ... OK > Loading Kernel Image ... OK > OK > > Starting kernel ... > > Uncompressing > Linux..................................................................................... > ............ done, booting the kernel. > Linux version 2.6.25-uc0-my_uClinux (k...@ubuntu) (gcc version 4.2.3 > (Sourcery G++ Lite > 2008q1-126)) #12 Tue Jun 30 04:14:19 BST 2009 > CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177 > Machine: Olimex SAM9-L9260 > Memory policy: ECC disabled, Data cache writeback > Clocks: CPU 180 MHz, master 90 MHz, main 18.432 MHz > CPU0: D VIVT write-back cache > CPU0: I cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets > CPU0: D cache: 8192 bytes, associativity 4, 32 byte lines, 64 sets > Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 > Kernel command line: mem=64M console=ttyS0,115200 root=/dev/mtdblock1 rw rootfstype=jffs2 > AT91: 96 gpio irqs in 3 banks > PID hash table entries: 256 (order: 8, 1024 bytes) > Console: colour dummy device 80x30 > console [ttyS0] enabled > 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: 61824KB available (2760K code, 210K data, 104K init) > Mount-cache hash table entries: 512 > CPU: Testing write buffer coherency: ok > net_namespace: 152 bytes > NET: Registered protocol family 16 > SCSI subsystem initialized > usbcore: registered new interface driver usbfs > usbcore: registered new interface driver hub > usbcore: registered new device driver usb > 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 > NetWinder Floating Point Emulator V0.97 (double precision) > audit: initializing netlink socket (disabled) > type=2000 audit(0.530:1): initialized > JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc. > io scheduler noop registered > io scheduler anticipatory registered > io scheduler deadline registered > io scheduler cfq registered (default) > atmel_usart.0: ttyS0 at MMIO 0xfefff200 (irq = 1) is a ATMEL_SERIAL > atmel_usart.1: ttyS1 at MMIO 0xfffb0000 (irq = 6) is a ATMEL_SERIAL > atmel_usart.2: ttyS2 at MMIO 0xfffb4000 (irq = 7) is a ATMEL_SERIAL > brd: module loaded > loop: module loaded > MACB_mii_bus: probed > eth0: Atmel MACB at 0xfffc4000 irq 21 (00:00:00:00:00:00) > eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:01, irq=-1) > Driver 'sd' needs updating - please use bus_type methods > block2mtd: version $Revision: 1.30 $ > NAND device: Manufacturer ID: 0xec, Chip ID: 0xdc (Samsung NAND 512MiB 3,3V > 8-bit) > Scanning device for bad blocks > Bad eraseblock 384 at 0x03000000 > Creating 2 MTD partitions on "NAND 512MiB 3,3V 8-bit": > 0x00000000-0x00400000 : "Bootloader Area" > 0x00400000-0x20000000 : "User Area" > at91_ohci at91_ohci: AT91 OHCI > at91_ohci at91_ohci: new USB bus registered, assigned bus number 1 > at91_ohci at91_ohci: irq 20, io mem 0x00500000 > usb usb1: configuration #1 chosen from 1 choice > hub 1-0:1.0: USB hub found > hub 1-0:1.0: 2 ports detected > Initializing USB Mass Storage driver... > usbcore: registered new interface driver usb-storage > USB Mass Storage support registered. > usbcore: registered new interface driver libusual > Registered led device: led_stat > Registered led device: led_pwr > TCP cubic registered > Initializing XFRM netlink socket > NET: Registered protocol family 1 > NET: Registered protocol family 17 > NET: Registered protocol family 15 > RPC: Registered udp transport module. > RPC: Registered tcp transport module. > drivers/rtc/hctosys.c: unable to open rtc device (rtc0) > Empty flash at 0x0c89630c ends at 0x0c896800 > Empty flash at 0x0e89b43c ends at 0x0e89b800 > Empty flash at 0x18ab325c ends at 0x18ab3800 > Empty flash at 0x1affaad4 ends at 0x1affb000 > Empty flash at 0x1ca8b140 ends at 0x1ca8b800 > VFS: Mounted root (jffs2 filesystem). > Freeing init memory: 104K > > INIT: version 2.86 booting Starting the hotplug events dispatcher: udevd. > Synthesizing the initial hotplug events...done. > Waiting for /dev to be fully populated...done. > Activating swap...done. > Checking root file system...fsck 1.40-WIP (14-Nov-2006) > fsck: fsck.jffs2: not found > fsck: Error 2 while executing fsck.jffs2 for /dev/mtdblock1 > done. > FATAL: Module rtc_dev not found. > Setting the system clock.. > Cannot access the Hardware Clock via any known method. > Use the --debug option to see the details of our search for an access method. > Cleaning up ifupdown.... > Loading kernel modules...done. > Loading device-mapper support. > Checking file systems...fsck 1.40-WIP (14-Nov-2006) > done. > Setting kernel variables...done. > Mounting local filesystems...done. > Activating swapfile swap...done. > Setting up networking.... > Configuring network interfaces...Internet Systems Consortium DHCP Client > V3.0.4 > Copyright 2004-2006 Internet Systems Consortium. > All rights reserved. > For info, please visit http://www.isc.org/sw/dhcp/ > > Listening on LPF/eth0/00:de:ad:b0:15:92 > Sending on LPF/eth0/00:de:ad:b0:15:92 > Sending on Socket/fallback > eth0: link up (100/Full) > DHCPREQUEST on eth0 to 255.255.255.255 port 67 > ip length 314 disagrees with bytes received 534. > accepting packet with data after udp payload. > DHCPACK from 192.168.1.1 > bound to 192.168.1.2 -- renewal in 33135 seconds. > done. > Starting portmap daemon.... > JFFS2 notice: (863) check_node_data: wrong data CRC in data node at > 0x149fed7c: read > 0x504ae29e, calculated 0xbfc2495b. > > INIT: Entering runlevel: 2 Starting system log daemon: syslogd > JFFS2 notice: (920) check_node_data: wrong data CRC in data node at > 0x18ab2f84: read > 0xf06f65e4, calculated 0x75499ae8. > . > Starting kernel log daemon: klogd. > Starting portmap daemon...Already running.. > Starting MTA: exim4. > Starting internet superserver: inetd. > Starting OpenBSD Secure Shell server: sshd. > Starting NFS common utilities: statd. > Starting deferred execution scheduler: atdStarting periodic command > scheduler: crond. > > Debian GNU/Linux 4.0 sam9-l9260 ttyS0 > > sam9-l9260 login: root > Password: > Last login: Thu Jan 1 03:08:48 1970 on ttyS0 > Linux sam9-l9260 2.6.25-uc0-my_uClinux #12 Tue Jun 30 04:14:19 BST 2009 > armv5tejl > > The programs included with the Debian GNU/Linux system are free software; > the exact distribution terms for each program are described in the > individual files in /usr/share/doc/*/copyright. > > Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent > permitted by applicable law. > sam9-l9260:~# > sam9-l9260:~# > sam9-l9260:~# ls -all > total 9 > drwxr-xr-x 4 root root 0 Jan 1 1970 . > drwxr-xr-x 24 root root 0 Jan 1 02:00 .. > drwx------ 2 root root 0 Oct 14 2007 .aptitude > -rw------- 1 root root 5967 Jan 1 1970 .bash_history > -rw-r--r-- 1 root root 412 Oct 14 2007 .bashrc > -rw------- 1 root root 43 Oct 14 2007 .lesshst > -rw-r--r-- 1 root root 110 Oct 14 2007 .profile > drwx------ 2 root root 0 Oct 14 2007 .ssh > -rw------- 1 root root 693 Jan 1 1970 .viminfo > sam9-l9260:~# > sam9-l9260:~# cd / > > > > Best Regards, > Kris > > _______________________________________________ > uClinux-dev mailing list > uClinux-dev@uclinux.org > http://mailman.uclinux.org/mailman/listinfo/uclinux-dev > This message was resent by uclinux-dev@uclinux.org > To unsubscribe see: > http://mailman.uclinux.org/mailman/options/uclinux-dev _______________________________________________ uClinux-dev mailing list uClinux-dev@uclinux.org http://mailman.uclinux.org/mailman/listinfo/uclinux-dev This message was resent by uclinux-dev@uclinux.org To unsubscribe see: http://mailman.uclinux.org/mailman/options/uclinux-dev