All times are UTC-06:00




Post new topic  Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Sat Nov 12, 2011 3:21 am 
Offline

Joined: Fri Oct 28, 2011 6:47 am
Posts: 55
Location: Terre
Hi,

I use a smarttop and have build a armhf debian sid.
I get a Kernel Panic when trying to bootup.
Code:
[ 61.778532] Kernel panic - not syncing: Attempted to kill init!
[ 61.784561] [<c0031fac>] (unwind_backtrace+0x0/0xe4) from [<c02976bc>] (panic+0x50/0x178)
[ 61.792777] [<c02976bc>] (panic+0x50/0x178) from [<c0048bfc>] (do_exit+0xb8/0x698)
[ 61.800352] [<c0048bfc>] (do_exit+0xb8/0x698) from [<c0049478>] (do_group_exit+0x7c/0xac)
[ 61.808557] [<c0049478>] (do_group_exit+0x7c/0xac) from [<c005606c>] (get_signal_to_deliver+0x378/0x3b8)
[ 61.818062] [<c005606c>] (get_signal_to_deliver+0x378/0x3b8) from [<c002eefc>] (do_signal+0xb0/0x59c)
[ 61.827301] [<c002eefc>] (do_signal+0xb0/0x59c) from [<c002f908>] (do_notify_resume+0x18/0x5c)
[ 61.835929] [<c002f908>] (do_notify_resume+0x18/0x5c) from [<c002c5d8>] (work_pending+0x24/0x28)
Is this a known bug ?
Is there a workaround or a fix ?

_________________
[:-]


Last edited by DrEagle on Sun Nov 27, 2011 7:11 am, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Sat Nov 12, 2011 6:43 pm 
Offline
Genesi

Joined: Mon Jan 30, 2006 2:28 am
Posts: 409
Location: Finland
Hi.

Have you tried using the ARMHF SD card image we have here:
http://www.powerdeveloper.org/platforms/efikamx/linux

If that works, try replacing the filesystem on it with yours and see if that boots.


Johan.

_________________
Johan Dams, Genesi USA Inc.
Director, Software Engineering

Yep, I have a blog... PurpleAlienPlanet


Top
   
 Post subject:
PostPosted: Sun Nov 13, 2011 12:58 pm 
Offline

Joined: Fri Oct 28, 2011 6:47 am
Posts: 55
Location: Terre
Quote:
Hi.

Have you tried using the ARMHF SD card image we have here:
http://www.powerdeveloper.org/platforms/efikamx/linux

If that works, try replacing the filesystem on it with yours and see if that boots.


Johan.
Will give a try, thanks...

_________________
[:-]


Top
   
 Post subject:
PostPosted: Sun Nov 20, 2011 7:21 am 
Offline

Joined: Fri Oct 28, 2011 6:47 am
Posts: 55
Location: Terre
Efika SmartTop not booting in debian armhf :
Quote:
Quote:
Hi.

Have you tried using the ARMHF SD card image we have here:
http://www.powerdeveloper.org/platforms/efikamx/linux

If that works, try replacing the filesystem on it with yours and see if that boots.


Johan.
Will give a try, thanks...
This give nothing : Not booting at all on the debian armhf-3d
Code:
Starting kernel ...

Uncompressing Linux.......................................................................................................................
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Linux version 2.6.31.14.25-efikamx (root@samwise.lan) (gcc version 4.6.1 (Debian 4.6.1-11) ) #1 Wed Sep 21 22:16:42 EEST 21
[ 0.000000] CPU: ARMv7 Processor [412fc085] revision 5 (ARMv7), cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] Machine: Genesi Efika MX (Smarttop)
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 117856
[ 0.000000] Kernel command line: console=ttymxc0,115200 root=/dev/mmcblk0p2 rootwait rw video=imx-ipuv3-fb:1024x600M-16@60 rootfstype=6
[ 0.000000] PID hash table entries: 2048 (order: 11, 8192 bytes)
[ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[ 0.000000] Memory: 464MB = 464MB total
[ 0.000000] Memory: 462220KB available (3496K code, 596K data, 140K init, 0K highmem)
[ 0.000000] SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:368
[ 0.000000] MXC IRQ initialized
[ 0.000000] MXC_Early serial console at MMIO 0x73fbc000 (options '115200')
[ 0.000000] console [ttymxc0] enabled
[ 0.000000] Console: colour dummy device 80x30
[ 0.000000] Calibrating delay loop (skipped) preset value.. 799.53 BogoMIPS (lpj=3997696)
[ 0.000000] Mount-cache hash table entries: 512
[ 0.000000] Initializing cgroup subsys ns
[ 0.000000] Initializing cgroup subsys freezer
[ 0.000000] Initializing cgroup subsys net_cls
[ 0.000000] CPU: Testing write buffer coherency: ok
[ 0.000000] devtmpfs: initialized
[ 0.000000] regulator: core version 0.5
[ 0.000000] NET: Registered protocol family 16
[ 0.000000] i.MX IRAM pool: 128 KB@0x9d840000
[ 0.000000] IRAM READY
[ 0.000000] CPU is i.MX51 Revision 3.0
[ 0.000000] MXC GPIO hardware
[ 0.000000] Efika MX: mmc0 configured as external SDHC
[ 0.000000] Efika MX: Smarttop Revision 1.3
[ 0.000000] Using SDMA I.API
With cloning my rootfs, I get the same results of Kernel Panic !

Will give a try to the Efika SmartBook MX...

_________________
[:-]


Top
   
 Post subject:
PostPosted: Mon Nov 21, 2011 2:10 pm 
Offline

Joined: Fri Oct 28, 2011 6:47 am
Posts: 55
Location: Terre
The lasts tests give no success at all in armel also.

I upgrade multistrap from debian/sid and rebuilt my debian for armhf (sid) and armel (squeeze and wheezy).

I get errors and always get Kernel Panic at the ramdisk loading.

_________________
[:-]


Top
   
 Post subject:
PostPosted: Sat Nov 26, 2011 10:24 am 
Offline

Joined: Fri Oct 28, 2011 6:47 am
Posts: 55
Location: Terre
Quote:
I get errors and always get Kernel Panic at the ramdisk loading.
Code:
[ 0.282373] Unpacking initramfs...
[ 0.282390] Initramfs unpacking failed: junk in compressed archive
any advice about this error ?

_________________
[:-]


Top
   
 Post subject:
PostPosted: Sat Nov 26, 2011 2:10 pm 
Offline
Genesi

Joined: Mon Jan 30, 2006 2:28 am
Posts: 409
Location: Finland
Hi.

How did you generate your kernel and initrd?
On Ubuntu (and Debian) you would do something like the following from within the kernel source directory:
Code:
cp arch/arm/configs/mx51_efikamx_defconfig .config

make-kpkg --revision 2011.06 --arch armel --cross-compile arm-linux-gnueabi- --subarch efikamx --us --uc --rootcmd=fakeroot --initrd TARGET
Where TARGET is the output from make-kpkg --targets which is probably just "kernel_image" (just linux-image-*.deb), "binary-arch" (linux-image, linux-headers and linux-image_dbg) or "binary" (full suite of packages).

You can change revision to anything you like.


Johan

_________________
Johan Dams, Genesi USA Inc.
Director, Software Engineering

Yep, I have a blog... PurpleAlienPlanet


Top
   
 Post subject:
PostPosted: Sat Nov 26, 2011 5:12 pm 
Offline

Joined: Fri Oct 28, 2011 6:47 am
Posts: 55
Location: Terre
Quote:
How did you generate your kernel and initrd?
I get them from efika.mx (armel) and from debian-ports (armhf).
With using update-initramfs to add mmc to the initrd I get these errors.

I will give another try with a custom build of kernel and ramdisk.

_________________
[:-]


Top
   
 Post subject:
PostPosted: Sun Nov 27, 2011 4:23 am 
Offline

Joined: Fri Oct 28, 2011 6:47 am
Posts: 55
Location: Terre
Still no success...
Quote:
How did you generate your kernel and initrd?
For the uImage mkimage, I use the following commad :
Code:
sudo mkimage -A arm -O linux -a 0x90008000 -e 0x90008000 -T kernel -C none -n "EfikaMX kernel" -d distro/p2/boot/vmlinuz-* distro/p2/boot/uImage
Image Name: EfikaMX kernel
Created: Sun Nov 27 11:15:17 2011
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2016820 Bytes = 1969.55 kB = 1.92 MB
Load Address: 0x90008000
Entry Point: 0x90008000
For the initrd mkimage, I use the following command :
Code:
sudo mkimage -A arm -O linux -a 0x0 -e 0x0 -T ramdisk -C none -n "EfikaMX ramdisk" -d distro/p2/boot/initrd.img-* distro/p2/boot/uInitrd
Image Name: EfikaMX ramdisk
Created: Sun Nov 27 11:15:17 2011
Image Type: ARM Linux RAMDisk Image (uncompressed)
Data Size: 2579713 Bytes = 2519.25 kB = 2.46 MB
Load Address: 0x00000000
Entry Point: 0x00000000
For the initrd loading, I use the following boot.script :
Code:
# This boot script loads the kernel and an initial ramdisk
# into memory, then runs them. The initramfs simply switches
# to the root file system on the SD card.
# --------------------------------------------------------
# Setup environment
setenv scriptid ***** Boot using initramfs *****
setenv kernel uImage
setenv ramdisk uInitrd
setenv bootargs initrd=${ramdiskaddr},32M ramdisk_size=32768 console=ttymxc0,115200n8 root=/dev/mmcblkp0p2 rootwait rw video=imx-ipuv3-fb:1024x600M-16@60 lpj=3997696 rootfstype=ext4 earlyprintk=serial;
# --------------------------------------------------------
# Start the boot process
echo ${scriptid}
${loadcmd} ${ramdiskaddr} ${ramdisk};
if imi ${ramdiskaddr}; then; else
setenv bootargs ${bootargs} noinitrd;
setenv ramdiskaddr "";
fi;
${loadcmd} ${kerneladdr} ${kernel}
if imi ${kerneladdr}; then
bootm ${kerneladdr} ${ramdiskaddr}
fi;
And rootfs incorrectly detected :
Code:
[ 2.398936] mmc0: new high speed SD card at address b368
[ 2.404617] ata1.00: configured for UDMA/44
[ 2.409204] scsi 0:0:0:0: Direct-Access ATA SanDisk pSSD-P2 SSD P5
[ 2.418963] mmcblk0: mmc0:b368 SD 1.91 GiB
[ 2.423607] mmcblk0:
[ 2.425909] sd 0:0:0:0: [sda] 15649200 512-byte logical blocks: (8.01 GB/7.4)
[ 2.433828] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 2.439538] p1 p2
[ 2.442229] sd 0:0:0:0: [sda] Write Protect is off
[ 2.447300] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doeA
[ 2.457157] sda: sda1 sda2
[ 2.464677] sd 0:0:0:0: [sda] Attached SCSI disk
[ 2.469874] VFS: Cannot open root device "mmcblk0p2" or unknown-block(179,2)
[ 2.477014] Please append a correct "root=" boot option; here are the availa:
[ 2.485385] b300 2009600 mmcblk0 driver: mmcblk
[ 2.490654] b301 72261 mmcblk0p1
[ 2.494940] b302 1935832 mmcblk0p2
[ 2.499241] 0800 7824600 sda driver: sd
[ 2.503789] 0801 121094 sda1
[ 2.507650] 0802 7699599 sda2
[ 2.511502] Kernel panic - not syncing: VFS: Unable to mount root fs on unkn)
armel build from sdcard give still no success.
uImage load correctly from uboot :
Code:
Starting kernel ...

Uncompressing Linux.............................................................
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Linux version 2.6.31.14.27dreagle-efikamx (root@astree) (gcc ver1
[ 0.000000] CPU: ARMv7 Processor [412fc085] revision 5 (ARMv7), cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction ce
[ 0.000000] Machine: Genesi Efika MX (Smarttop)
But I still get initramfs error :
Code:
[ 1.204099] Unpacking initramfs...
[ 1.207541] Initramfs unpacking failed: junk in compressed archive
[ 1.219166] Freeing initrd memory: 32768K

_________________
[:-]


Top
   
 Post subject:
PostPosted: Tue Nov 29, 2011 12:32 pm 
Offline

Joined: Fri Oct 28, 2011 6:47 am
Posts: 55
Location: Terre
There is a bug in prep-kernel !
mkimage is buggy for ramdisk if -O linux switch is used ...
No more kernel panic.

_________________
[:-]


Top
   
 Post subject:
PostPosted: Wed Nov 30, 2011 3:57 am 
Offline

Joined: Wed Oct 13, 2004 7:26 am
Posts: 348
Can you try with the new image?

http://www.powerdeveloper.org/asset/by-id/133


Top
   
 Post subject:
PostPosted: Wed Nov 30, 2011 3:09 pm 
Offline

Joined: Fri Oct 28, 2011 6:47 am
Posts: 55
Location: Terre
Quote:
Can you try with the new image?

http://www.powerdeveloper.org/asset/by-id/133
Downloading and give feedback after a try.

My kernel panics and the buggy initrd was fixed with :
Code:
diff --git a/usr/sbin/prep-kernel b/usr/sbin/prep-kernel
index 1348c78..4928445 100755
--- a/usr/sbin/prep-kernel
+++ b/usr/sbin/prep-kernel
@@ -68,7 +68,9 @@ efikamx_prep_kernel() {
# if there's an initrd.img to generate, do it, if not, ignore..
if [ -e "${ifile}" ]; then
printf "Generating initrd u-boot image... " >&2
- mkimage -A arm -O linux -T ramdisk -C none -a 0x0 \
+ mkimage -A arm -T ramdisk -C none -a 0x0 \
-e 0x0 -n "${idesc}" -d "${ifile}" "$tmp.uInitrd" >&2 1>
echo "done." >&2

_________________
[:-]


Top
   
 Post subject:
PostPosted: Wed Nov 30, 2011 5:38 pm 
Offline

Joined: Fri Oct 28, 2011 6:47 am
Posts: 55
Location: Terre
Quote:
Can you try with the new image?

http://www.powerdeveloper.org/asset/by-id/133
Works great !

Thanks...

_________________
[:-]


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 13 posts ] 

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 19 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
PowerDeveloper.org: Copyright © 2004-2012, Genesi USA, Inc. The Power Architecture and Power.org wordmarks and the Power and Power.org logos and related marks are trademarks and service marks licensed by Power.org.
All other names and trademarks used are property of their respective owners. Privacy Policy
Powered by phpBB® Forum Software © phpBB Group