Active Topics

 


Reply
Thread Tools
Posts: 2 | Thanked: 0 times | Joined on Apr 2011
#1
Hi,

I have successfully installed everything and I can easily play with scratchbox. I do not have a N900 device, I just have the emulator. I also made a custom kernel image for this same emulator. There are many tutorials on how to flash a real device with a custom kernel BUT not any at how to use another kernel in the emulator?? How can I do that?

Best regards
 
Posts: 805 | Thanked: 1,605 times | Joined on Feb 2010 @ Gdynia, Poland
#2
By "emulator" you mean opening xephyr window and typing "af-sb-init.sh start" in scratchbox window? I don't think it is possible to flash any custom kernel there, because:
1. You compiled your kernel for armel architecture and your computer is x86 or x86_64 architecture
2. "Emulator" - above command - cannot (at least not when I tried it last time) be executed in armel environment, only in x86
3. When it is run in x86, it uses (somebody correct me if I'm wrong) kernel from your Linux host (from Ubuntu or Fedora or whichever Linux distro you have), it just fakes being a device emulator and runs whole Maemo software just like any other software on your computer (like web browser, text editor, etc.) giving you fake impression of being an emulator. These aren't even actual program packages which we have on our devices - these are their special versions compiled for x86 architecture (when someone uploads source to extras-devel, it is automatically compiled for both architectures resulting in two packages - one for actual devices and one special for scratchbox environment).

If you want someone to help you test your kernel, upload it here (image file and modules). On device it is quite easy to have multiple kernels installed - one just has to install multiboot, then put kernel in /boot folder, modules in /lib/modules and create special entry .item file in /etc/multiboot.d . I had never even dreamed of a device with boot manager capable of booting multiple kernels as easy as on full-size computer

So, wanna upload your kernel with short description what you had changed?
 
Posts: 2 | Thanked: 0 times | Joined on Apr 2011
#3
Hi,

thank you for your fast answer. I have port the modifications made to the kernel to my linux kernel so it will be used by Xephyr in the emulation. I'll have a N900 tuesday to install the kernel on it, so the only thing I need to do so is use the flasher tool with the image? No requirement with signatures of something like that?

Best regards,
 
Posts: 805 | Thanked: 1,605 times | Joined on Feb 2010 @ Gdynia, Poland
#4
If i can recommend you something - install multiboot on your n900 when you get it. It will make things much easier.

When you want to install custom kernel with multiboot, you will have to:

1. copy the vmlinuz-X.YY.ZZblahblah or zImage-X.YY.ZZblahblah file to /boot folder on your device
2. copy all kernel modules to /lib/modules/X.YY.ZZblahblah folder on your device
3. Create multiboot entry (02-blahblah.item) file in /etc/multiboot.d folder, eg /etc/multiboot.d/02-mysupersweetkernel.item with contents:
ITEM_NAME="My super sweet kernel"
ITEM_KERNEL="X.YY.ZZblahblah"
ITEM_MODULES=ext3
Where:
ITEM_NAME describes name which will be displayed on screen while booting
ITEM_KERNEL describes the suffix of your kernel image file and modules file name. It is important that your image kernel file suffix and modules folder are the same, eg. kernel is /boot/vmlinuz-2.6.28.10modified1 and modules are in /lib/modules/2.6.28.10modified1
ITEM_MODULES are external modules loaded at startup, "ext3" is needed, you can add more if you want. I found in multiboot source package more options and described them in this post: http://talk.maemo.org/showpost.php?p...5&postcount=91 you don't need to set any more options than these three, but you can if you need to.

Why multiboot is better, than flashing the kernel? Because:
1. installing new kernel is as easy as copying these files to device
2. if you device cannot load new kernel and reboots, you can always load your omap defeault kernel (no need to reflash)
3. you can have as many kernels installed on device as you want (only rootfs storage sets your limit)

While using multiboot, you have to turn on your N900 with keyboard open. Then you will see a list of kernels (you can see screenshot here: http://www.ngportal.com/micadeyeye/i...d-2/_dsc01607/ , only image I could find via google) and you can choose them by pressing keys on keyboard - key "1" for first option, "2" for second, etc. I have now 4 kernels on my N900: default omap kernel, power-kernel46 with wifi bleeding edge drivers, power-kernel46 with pali modifications and NITDroid kernel. If you have any more questions, just ask. If you find my answers useful, you can click "Thanks!" button under my posts
 

The Following User Says Thank You to misiak For This Useful Post:
Posts: 5 | Thanked: 0 times | Joined on Apr 2011
#5
Hi misiak, thank you for your posts, I would like to know if there is a tutorial or how-to to install multiboot with the power-kernel46 with wifi bleeding edge drivers. I'm interested in pentesting but don't want to kill my n900 by doing something wrong.
Thanks.
 
Posts: 805 | Thanked: 1,605 times | Joined on Feb 2010 @ Gdynia, Poland
#6
Originally Posted by 0xcase View Post
Hi misiak, thank you for your posts, I would like to know if there is a tutorial or how-to to install multiboot with the power-kernel46 with wifi bleeding edge drivers. I'm interested in pentesting but don't want to kill my n900 by doing something wrong.
Thanks.
I don't know if there exists one... I can write one myself if you need it and can't find it
 

The Following User Says Thank You to misiak For This Useful Post:
Posts: 5 | Thanked: 0 times | Joined on Apr 2011
#7
That would be great thanks .

I have 82.8mb in the Rootfs is possible to install another kernel ?
I have installed Rootsh and executed apt-get clean and apt-get autoremove but nothing happens :S.

Thanks.
 
Posts: 805 | Thanked: 1,605 times | Joined on Feb 2010 @ Gdynia, Poland
#8
Originally Posted by 0xcase View Post
That would be great thanks .

I have 82.8mb in the Rootfs is possible to install another kernel ?
I have installed Rootsh and executed apt-get clean and apt-get autoremove but nothing happens :S.

Thanks.
Yeah, kernel with modules doesn't take much space, less than 10 mb.

If you can wait a little bit longer, Pali is working on integrating wifi pathes to main power kernel (he already released power kernel 47 with many improvements), so in near future installing multiboot and power kernel with wifi pathes will be as simple as: install multiboot, install (or reinstall) power kernel, install additional packages (also via app manager or apt-get in command line) to have entry in multiboot and wifi bleeding edge driver (Pali suggested that driver will be available as external package). See power kernel 47 announcement thread for more information
 

The Following User Says Thank You to misiak For This Useful Post:
Posts: 5 | Thanked: 0 times | Joined on Apr 2011
#9
Originally Posted by misiak View Post
Yeah, kernel with modules doesn't take much space, less than 10 mb.

If you can wait a little bit longer, Pali is working on integrating wifi pathes to main power kernel (he already released power kernel 47 with many improvements), so in near future installing multiboot and power kernel with wifi pathes will be as simple as: install multiboot, install (or reinstall) power kernel, install additional packages (also via app manager or apt-get in command line) to have entry in multiboot and wifi bleeding edge driver (Pali suggested that driver will be available as external package). See power kernel 47 announcement thread for more information
Thank you so much for all the info.
I will keep my both eyes on the power kernel 47 announcement thread .
 
Reply


 
Forum Jump


All times are GMT. The time now is 07:19.