[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Booting Emdebian filesystem



Hi

1. I have been trying to load and boot Emdebian FS on the ARM board but when the ARM board boots into Emdebian, the /sbin folder does not exist, I just see sbin file of a size 0bytes.

I ran ./emsecondstage on my arm baord after doing tar -xzpf emdebian-arm.tgz

next I created a jffs2 filesystem
mkfs.jffs2 -e 0x20000 -s 0x800 -r /EmFS -o emrootfs.jffs2 -l -n -m none

next it load it on mtdblock1 like this (my stsem looks for rootfs in mtdbl0ck1)

cat emrootfs.jffs2 > /dev/mtdblock1

and i reboot the board. This is what happens:

2. My LCD display on the board also does not work once filesystem loads, was working earlier.

Any help is appreciated. Thanks !!

Starting kernel ...

Uncompressing Linux.............................................................
...................................... done, booting the kernel.
Linux version 2.6.24 (pvilchez@bendor) (gcc version 4.2.0 20070413 (prerelease)
(CodeSourcery Sourcery G++ Lite 2007q1-10)) #1 Thu Jun 12 16:42:24 CEST 2008
CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=00053177
Machine: Atmel AT91SAM9263-EK
Ignoring unrecognised tag 0x54410008
Memory policy: ECC disabled, Data cache writeback
Clocks: CPU 199 MHz, master 99 MHz, main 16.367 MHz
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 16256
Kernel command line: mem=64M console=ttyS0,115200 root=/dev/mtdblock1 mtdparts=a
t91_nand:4M(mtdblock0),-(root) rw rootfstype=jffs2
AT91: 160 gpio irqs in 5 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: 61696KB available (2804K code, 248K data, 120K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
net_namespace: 64 bytes
NET: Registered protocol family 16
AT91: Power Management
AT91: Starting after user reset
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
Time: pit clocksource has been installed.
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)
JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered (default)
atmel_lcdfb atmel_lcdfb.0: 150KiB frame buffer at 23d40000 (mapped at ffc00000)
Console: switching to colour frame buffer device 30x40
atmel_lcdfb atmel_lcdfb.0: fb0: Atmel LCDC at 0x00700000 (mapped at c485c000), i
rq 26
atmel_usart.0: ttyS0 at MMIO 0xfeffee00 (irq = 1) is a ATMEL_SERIAL
atmel_usart.1: ttyS1 at MMIO 0xfff8c000 (irq = 7) is a ATMEL_SERIAL
RAMDISK driver initialized: 16 RAM disks of 8192K size 1024 blocksize
loop: module loaded
MACB_mii_bus: probed
eth0: Atmel MACB at 0xfffbc000 irq 21 (3a:1f:34:08:54:54)
eth0: attached PHY driver [Generic PHY] (mii_bus:phy_addr=ffffffff:00, irq=-1)
Driver 'sd' needs updating - please use bus_type methods
NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 256MiB 3,3V 8-bit
)
AT91 NAND: 8-bit, Software ECC
Scanning device for bad blocks
2 cmdlinepart partitions found on MTD device at91_nand
Creating 2 MTD partitions on "at91_nand":
0x00000000-0x00400000 : "mtdblock0"
0x00400000-0x10000000 : "root"
atmel_spi atmel_spi.0: Atmel SPI Controller at 0xfffa4000 (irq 14)
usbmon: debugfs is not available
at91_ohci at91_ohci: AT91 OHCI
at91_ohci at91_ohci: new USB bus registered, assigned bus number 1
at91_ohci at91_ohci: irq 29, io mem 0x00a00000
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...
usb 1-1: new full speed USB device using at91_ohci and address 2
usb 1-1: configuration #1 chosen from 1 choice
usb 1-2: new low speed USB device using at91_ohci and address 3
usb 1-2: configuration #1 chosen from 1 choice
scsi0 : SCSI emulation for USB Mass Storage devices
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
udc: at91_udc version 3 May 2006
mice: PS/2 mouse device common for all mice
input: gpio-keys as /class/input/input0
ads7846 spi0.3: touchscreen, irq 31
input: ADS784x Touchscreen as /class/input/input1
rtc-at91sam9 at91_rtt.0: rtc core: registered at91_rtt as rtc0
Registered led device: ds1
Registered led device: ds2
Registered led device: ds3
input: HID 04d9:1400 as /class/input/input2
input: USB HID v1.10 Keyboard [HID 04d9:1400] on usb-at91-2
input: HID 04d9:1400 as /class/input/input3
input: USB HID v1.10 Mouse [HID 04d9:1400] on usb-at91-2
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
Advanced Linux Sound Architecture Driver Version 1.0.15 (Tue Nov 20 19:16:42 200
7 UTC).
AC97C regs = FFFA0000
AC97C irq  = 18
at91-ac97: codec read timeout
<4>at91-ac97: codec read timeout
<4>at91-ac97: codec read timeout
<4>at91-ac97: codec read timeout
<6>ALSA device list:
  #0: Atmel AC97 Controller at 0xfffa0000, irq 18
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc-at91sam9 at91_rtt.0: setting system clock to 2009-05-08 10:14:13 UTC (124177
7653)
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "apt" (ino #1979) of dir ino
 #1969 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "ldconfig" (ino #1980) of di
r ino #1969 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "apt" (ino #1984) of dir ino
 #1970 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "x11" (ino #1992) of dir ino
 #1970 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "dpkg" (ino #1987) of dir in
o #1970 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "misc" (ino #1990) of dir in
o #1970 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "dhcp3" (ino #1986) of dir i
no #1970 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "urandom" (ino #1991) of dir
 ino #1970 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "cdebconf" (ino #1985) of di
r ino #1970 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "initscripts" (ino #1988) of
 dir ino #1970 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "libuuid" (ino #1989) of dir
 ino #1970 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "archives" (ino #1981) of di
r ino #1979 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "partial" (ino #1982) of dir
 ino #1981 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "lists" (ino #1993) of dir i
no #1984 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "periodic" (ino #1994) of di
r ino #1984 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "questions" (ino #1999) of d
ir ino #1985 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "templates" (ino #2001) of d
ir ino #1985 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "info" (ino #2008) of dir in
o #1987 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "triggers" (ino #2014) of di
r ino #1987 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "alternatives" (ino #2004) o
f dir ino #1987 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "parts" (ino #2010) of dir i
no #1987 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "updates" (ino #2015) of dir
 ino #1987 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "partial" (ino #1997) of dir
 ino #1993 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "Kentucky" (ino #1555) of di
r ino #1373 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "info" (ino #1582) of dir in
o #1020 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "alternatives" (ino #1581) o
f dir ino #1020 appears to be a hard link
JFFS2 error: (1) jffs2_build_inode_pass1: child dir "lists" (ino #1583) of dir i
no #1020 appears to be a hard link
scsi 0:0:0:0: Direct-Access              USB Flash Memory 1.00 PQ: 0 ANSI: 2
VFS: Mounted root (jffs2 filesystem).
Freeing init memory: 120K
sd 0:0:0:0: [sda] 1967104 512-byte hardware sectors (1007 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
JFFS2 warning: (1) jffs2_do_read_inode_internal: Truncating ino #19 to 667784 by
tes failed because it only had 0 bytes to start with!
sd 0:0:0:0: [sda] 1967104 512-byte hardware sectors (1007 MB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 0:0:0:0: [sda] Attached SCSI removable disk
/bin/sh: can't access tty; job control turned off
/ # JFFS2 warning: (327) jffs2_do_read_inode_internal: Truncating ino #635 to 95
40 bytes failed because it only had 12 bytes to start with!
JFFS2 warning: (327) jffs2_do_read_inode_internal: Truncating ino #812 to 181464
 bytes failed because it only had 40960 bytes to start with!
JFFS2 warning: (327) jffs2_do_read_inode_internal: Truncating ino #883 to 435188
8 bytes failed because it only had 294067 bytes to start with!

/ #
/ # JFFS2 warning: (327) jffs2_do_read_inode_internal: Truncating ino #2246 to 3
1848 bytes failed because it only had 1936 bytes to start with!
lJFFS2 warning: (327) jffs2_do_read_inode_internal: Truncating ino #883 to 43518
88 bytes failed because it only had 294067 bytes to start with!
s

bin                           media
boot                          mnt
datestring                    opt
debootstrap                   proc
dev                           root
emdebian-archive-keyring.gpg  sbin
emdebian-arm.tgz              selinux
emsecondstage                 srv
etc                           sys
home                          tmp
lib                           usr
linuxrc                       var
/ #
/ #

Reply to: