All times are UTC-06:00




Post new topic  Reply to topic  [ 4 posts ] 
Author Message
PostPosted: Wed May 04, 2011 5:40 am 
Offline

Joined: Wed May 04, 2011 4:28 am
Posts: 6
Hi,

I've added the Maverick repository at http://packages.efikamx.info/ to my sources.list.

I am currently running 2.6.31.14.2-efikasb

I noticed that there was a newer kernel image:
2.6.31.14.20-efikamx

I tried installing it (and the imx-boot-scripts package too)

On reboot the system drops to an initramfs prompt. The module pata_fsl is not loaded and so /dev/sda2 is not mounted and there's no root filesystem.

In order to get back to where I started I mounted /dev/sda1 and copied boot.scr.bak over boot.scr - after doing this things are working again (obviously with the older kernel)

So, is upgrading like that supposed to be supported? If not, what is the best way to get the new kernel?

Thanks
Who


Top
   
 Post subject:
PostPosted: Wed May 04, 2011 10:16 am 
Offline

Joined: Sun Mar 27, 2011 1:18 pm
Posts: 183
Location: Hornell, NY
Hrm I wish I had a system as old as yours to test on. it might be easier to just install the maverick image from genesi that already had the repo on it out of the box (and the 14.20 revision kernel)

It sounds like initramfs-tools was not set up to load the correct modules inside the initrd.

Make sure /etc/initramfs-tools/modules contains
Code:
pata_fsl
mx_sdhci
mmc_block
ehci_hcd
then run update-initramfs -k 2.6.31.14.20-efikamx -c

after that you will probably need to run this script inside /boot (I have it named kernel-prep)
Code:
#!/bin/bash
ver=$1
loadaddr=0x90008000
echo `pwd`
mkimage -A arm -O linux -T kernel -C none -n "Installer $ver" -a $loadaddr -e $loadaddr -d ./vmlinuz-$ver ./uImage-$ver
mkimage -A arm -O linux -T ramdisk -C none -a 0x0 -e 0x0 -n "Ramdisk $ver" -d ./initrd.img-$ver ./uInitrd-$ver
you will cant to put that inside /boot cd to /boot and run
./kernel-prep 2.6.31.14.20-efikamx

Finally there is one more script you will want to use (after backing up your working boot.scr)

this one is called script-prep:
Code:
#!/bin/sh
mkimage -A arm -T script -C none -n "Efika MX Installer" -d $1 $2
this also goes in /boot

now the only thing left is to give it a plain text boot script to use. it should look like this (I call it boot.script and I also keep it in /boot) Just make sure the
ramdisk and kernel are set to the correct uInitrd and uImage files for your kernel version (those were created by the kernel-prep script)
Code:
setenv ramdisk uInitrd-2.6.31.14.20-efikamx;
setenv kernel uImage-2.6.31.14.20-efikamx;
setenv bootargs console=tty1 root=/dev/sda2 rootwait rw;
${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;
Once we have all of this now its time to run these commands:
Code:
cd /boot
cp boot.scr boot.scr.working
./script-prep boot.script boot.scr
The new kernel should come up fine after all of this. but really unless you've really heavily customized your system it might be a lot better to just use the updated installer image since I don't know everything that has changed from before that was released. I'm just posting this here so people can get some idea as to how booting the kernel works if they need it.

I hope you find this helpful in any case.


Top
   
 Post subject:
PostPosted: Wed May 04, 2011 11:31 am 
Offline

Joined: Wed May 04, 2011 4:28 am
Posts: 6
Thanks very much,

The kernel package looks like it is hooked in to Ubuntu well enough that all I actually needed to do was add the modules in /etc/initramfs-tools/modules and then run
Code:
sudo update-initramfs -u
That generated uImage and initrd.img and configured boot.scr automagically :)

I still don't have kb/mouse when I resume from suspend though :( Should/does that work on the latest Maverick images?


Top
   
 Post subject:
PostPosted: Wed May 04, 2011 11:42 am 
Offline

Joined: Sun Mar 27, 2011 1:18 pm
Posts: 183
Location: Hornell, NY
kb/mouse works for me when I resume from suspend on the current maverick image at least on the smartbook. I don't know that I've ever tried to suspend the smarttop (would there ever be a need for that? its not like it consumes enough power to really matter if its on 24/7 or not)


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

All times are UTC-06:00


Who is online

Users browsing this forum: No registered users and 54 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