| Prev |   1     2   3   4   | Next
maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   HOWTO: Change, remove or add u-boot on power kernel image (https://talk.maemo.org/showthread.php?t=65776)

blck 2011-05-22 15:19

Re: HOWTO: Change, remove or add u-boot on power kernel image
 
Hey there,
do I have to remove the installed power-kernel-version(v47) and install uboot first?

Thanks for any tips, I really want to test meego, but the uboot-version available through the repositories ist only for version46.

Cheers, Blck

J4ZZ 2011-07-14 12:31

Re: HOWTO: Change, remove or add u-boot on power kernel image
 
Here's a small guide to add u-boot to power48.

1st: Download and install all packages from here

Code:

dpkg -i kernel-power_1:2.6.28-10power48_armel.deb
dpkg -i kernel-power-modules_1:2.6.28-10power48_armel.deb
dpkg -i kernel-power-flasher_1:2.6.28-10power48_armel.deb
dpkg -i kernel-power-settings_0.12_armel.deb
dpkg -i kernel-power-bootimg_1:2.6.28-10power48_armel.deb

check if it's installed properly with
Code:

uname -r
Is should say 2.6.28.10-power48

Then follow up this little guide ;) (Thx to [DarkGUNMAN] and Fabry's guide of patching power-kernel with u-boot)

Open Terminal:
Code:

sudo gainroot
cd /home/user

# Prerequisites
Code:

apt-get install -y wget flasher mkimage
#1. Download power kernel deb file from repository and extract fiasco image from it
Code:

wget http://atrey.karlin.mff.cuni.cz/~pali/kernel-power_1:2.6.28-10power48_armel.deb -O kernel-power_2.6.28-10power48_armel.deb
dpkg --fsys-tarfile kernel-power_2.6.28-10power48_armel.deb | tar -xf - boot/zImage-2.6.28.10-power48.fiasco
mv boot/zImage-2.6.28.10-power48.fiasco /home/user/
rm -r boot
rm kernel-power_1:2.6.28-10power48_armel.deb

#2. Download Matan's u-boot from repository (it is named u-boot-for-power-kernel) and extract file image from it
Code:

wget http://repository.maemo.org/extras-devel/pool/fremantle/free/u/u-boot-for-power-kernel/u-boot-for-power-kernel_1.0_all.deb -O u-boot-for-power-kernel_1.0_all.deb
dpkg --fsys-tarfile u-boot-for-power-kernel_1.0_all.deb | tar -xf - ./usr/lib/u-boot/u-boot.bin.0x38000/u-boot.bin.0x38000
mv ./usr/lib/u-boot/u-boot.bin.0x38000/u-boot.bin.0x38000 /home/user/vmlinuz-2.6.28.10-power48
rm -r usr
rm u-boot-for-power-kernel_1.0_all.deb

#3. Unpack Fiasco image
Code:

flasher -u -F zImage-2.6.28.10-power48.fiasco
rm zImage-2.6.28.10-power48.fiasco

#4. Transform zImage in uImage (necessary because u-boot boots Kernel only in uImage file format)
Code:

mkimage -A arm -O linux -T kernel -C none -a 80008000 -e 80008000 -n "Power Kernel v48" -d zImage uImage
#5. Add power kernel uImage at end of previous file (starting write at offset 0x38000 aka 448 blocks)
Code:

dd if=uImage of=vmlinuz-2.6.28.10-power48 seek=448
#6. Remove zImage & uImage
Code:

rm zImage
rm uImage

#7.1 Flash the kernel
Code:

softupd -vv -s --local
#7.2 Open a new terminal (Shift+Ctrl+X) leave other xterm open!!!
Code:

flasher --local -f -k /home/user/vmlinuz-2.6.28.10-power48
#8. Optional - Multiboot - backup and replace Power48
Code:

mv /boot/zImage-2.6.28.10-power48 /boot/multiboot/vmlinuz-2.6.28.10-power48-bak
mv /boot/multiboot/vmlinuz-2.6.28.10-power* /boot/multiboot/vmlinuz-2.6.28.10-power48-bak
mv /home/user/vmlinuz-2.6.28.10-power48 /boot/multiboot/vmlinuz-2.6.28.10-power48

#9. Optional - Clean Multiboot Entries
If you have old power47 or double power48 entries
open Filebox and navigate to /etc/multiboot.d to delete the respecting *.item files.

#10. Reboot and watch the http://upload.wikimedia.org/wikipedi...-Fresh_tux.png !!! :D

Edit: I coloured the code for whose who don't know what goes together and what not. So, each colored lines are a complete string where to hit 'Enter' after. I left the obvious ones untouched ;)

Greetz,

J4ZZ

michaaa62 2011-07-14 12:46

Re: HOWTO: Change, remove or add u-boot on power kernel image
 
Quote:

Originally Posted by blck (Post 1012763)
Hey there,
do I have to remove the installed power-kernel-version(v47) and install uboot first?

Thanks for any tips, I really want to test meego, but the uboot-version available through the repositories ist only for version46.

Cheers, Blck

What are exactly the benefits of power-kernel v47 for you over v46?
If you just want to try meego, why don't you downgrade your power-kernel to v46, go and see what meego has to offer.

xxxxts 2011-08-31 14:59

Re: HOWTO: Change, remove or add u-boot on power kernel image
 
Everytime I run NITDroid (N12 Gingerbread) it breaks my u-boot.

Larswad 2011-09-06 21:03

Re: HOWTO: Change, remove or add u-boot on power kernel image
 
@J4ZZ:
Look, thanks for the guide and all! I know my way around using the command line and even worked with linux for a couple of years. But before using anything like that guide I'd like to have some basic stuff cleared out first.

It's almost unbelievable but I haven't found anywhere anyone that explains what all these boot things are actually doing in detail.

I mean, I was happy to read that if I install kernel power with it's supplied bootimg package, then my guess was that I would be able to multiboot just by doing that. Then I read about this u-boot stuff that I know have been around for a while since the earlier power kernels, that it is obviously needed as well. So what does that provide in comparison with bootimg package? What the hell?

Why do I need the bootimg package, why do I need the u-boot package and why do I need both in order to use multiboot with for instance MeeGo on the SD card.

I know this sounds like like very noob stuff, but I haven't found anywhere here someone explaining the boot process in the N900 and why we need this and that in order to get it to work.
It would be much easier to accept such guides if we understand the reason to what the freaking things are doing that we install.
I have read about the universal bootloader earlier, but not really how it fits into the n900. It's not so strange that some ppl cannot follow simple guides if noone really explains what's going on.

Probably it's explained somewhere, but I sure haven't found it and I'm tired of clicking through +100 pages in threads with unrelated stuff or with guides for dummies that says "do it this way" but not explaining how it is supposed to work in just basic terms.
Where can I read about the darned boot process?

BTW, the search bar here at talk.maemo.org is useless junk.
Rant over.

trlopes1974 2011-09-07 15:13

Re: HOWTO: Change, remove or add u-boot on power kernel image
 
followed instructions (twice) but boot stuck at "Loading kernel..." line.
I've made the procedure with powerk v48.
any thoughts/help?

erendorn 2011-09-07 15:22

Re: HOWTO: Change, remove or add u-boot on power kernel image
 
Quote:

Originally Posted by trlopes1974 (Post 1083593)
followed instructions (twice) but boot stuck at "Loading kernel..." line.
I've made the procedure with powerk v48.
any thoughts/help?

does this work? which instructions did you followed, and were did it exactly fail?

trlopes1974 2011-09-07 16:10

Re: HOWTO: Change, remove or add u-boot on power kernel image
 
Just followed your link instructions (wich seem to be the same has on this thread) and the same happens.
Uboot is stuck on "Starting kernel ..." and the led light is on (strong blue).

PS. I have to remove bat to reflash the non-uboot kernel again

erendorn 2011-09-07 22:09

Re: HOWTO: Change, remove or add u-boot on power kernel image
 
yes it's based on this thread and another, as referenced. In one of the thread (this one or the other), it's written that some firmware don't work with the verion of u-boot used here, so maybe it's the case for you :/

mistman 2011-09-07 22:13

Re: HOWTO: Change, remove or add u-boot on power kernel image
 
im in exactly the same situation boots meego fine , But freezes at loading kernel after trying to add u-boot to kernel 48.


| Prev |   1     2   3   4   | Next
All times are GMT. The time now is 21:56.

vBulletin® Version 3.8.8