![]() |
Re: Introducing ubiboot N9 (multiboot OS loader)
Quote:
Code:
juice@firefly:~/n9_stuff/PR1.3$ |
Re: Introducing ubiboot N9 (multiboot OS loader)
I've upgraded to 0.3.8 (copied over new cpio, updated conf and flashed kernel) and I'm experiencing an issue with g_multi.ko kernel module:
Code:
/ # modprobe g_multi I'm in need of initrmafs support so I can boot postmarketOS w/o using command line, but I'm facing an issue due to a fact that pmOS uses 2 partitions - one for kernel + initramfs, and another for rootfs. If I specify ubiboot to use the partition with kernel + initramfs ubiboot fails while checking for existatnce of /sbin/init script since that partition doesn't contain init (Checking 2nd stage kernel init file:...). Is there any way around that? Using command line I'm able to load pmOS with: Code:
mount /dev/mmcblk0p5 /mnt/5 && /usr/bin/disable_pm && kexec -l /mnt/5/vmlinuz-nokia-n9 --initrd=/mnt/5/initramfs-nokia-n9 --append=cma=24M\ debug\ ignore_loglevel\ log_buf_len=1M\ console=ttyO2\ PMOS_NO_OUTPUT_REDIRECT && kexec -e |
Re: Introducing ubiboot N9 (multiboot OS loader)
Quote:
Quote:
When ubiboot first was designed there was no need for using separate partitions for system and kernel & initramfs, however implementing that is not too difficult. I think it ought to be done so that widest possible set of configurations is easy to handle, I'll have to think about it a bit. Quote:
|
Re: Introducing ubiboot N9 (multiboot OS loader)
Quote:
Quote:
|
Re: Introducing ubiboot N9 (multiboot OS loader)
Quote:
juiceme, what's the reason for the new ubiboot kernel? Has anything changed there? I never bothered to flash the new ubiboot kernel as the changes I submitted didn't require them so I'm still on the previous kernel (0.3.6 tiny) and have no problems with loading g_multi. EDIT: P.S. I haven't been able to get any recent (patched) mainline kernel to boot at all via ubiboot, not even by entering the kexec command manually via telnet. It's very difficult to debug without a serial console and can't find any info on how to build a cable for the N950 (I don't have an N9). One option I was hoping for was to build a ubiboot kernel with the serial USB gadget but as juiceme knows, it's broken and doesn't build right now. My only (semi) success with booting patched mainline has been with Pali's 0xFFFF with the default (NULL?) kernel cmdline. With that I'm able to bring up initrd and the display comes up. The strange thing is that if I try to specify a cmdline, it breaks it. |
Re: Introducing ubiboot N9 (multiboot OS loader)
I have to admit I did not test that so extensively, just that it launched harmattan correctly on my device. Indeed something mus have gone amiss when I built and packaged it.
Quote:
Quote:
Also as there was new functional interface to kexec I pushed up the internal version number which needs to match between the kernel, the cpio and the configuration file. I'll have to recheck what went wrong with the build. |
Re: Introducing ubiboot N9 (multiboot OS loader)
There is something here that I am not seeing now; I build the modules in the same kernel tree as the kernel itself, and install them correctly. Nothing has changed since the last time I built these, and the version strings and everytihing match, yet I still get the "g_multi: no symbol version for module_layout" error...
juice@ahma:~/kernel_dev/new_work/kernel-adaptation-n950-n9$ juice@ahma:~/kernel_dev/new_work/kernel-adaptation-n950-n9$ grep g_multi ubifs/ubifs_list file /lib/modules/2.6.32.54-ubiboot-02-b/g_multi.ko drivers/usb/gadget/g_multi.ko 744 0 0 juice@ahma:~/kernel_dev/new_work/kernel-adaptation-n950-n9$ juice@ahma:~/kernel_dev/new_work/kernel-adaptation-n950-n9$ juice@ahma:~/kernel_dev/new_work/kernel-adaptation-n950-n9$ strings ./drivers/usb/gadget/g_multi.ko | grep ubiboot vermagic=2.6.32.54-ubiboot-02-b preempt mod_unload modversions ARMv7 juice@ahma:~/kernel_dev/new_work/kernel-adaptation-n950-n9$ |
Re: Introducing ubiboot N9 (multiboot OS loader)
OK search me, just how stupid can one be... :)
I realized the reason my modules were incompatible, and now I remembered I actually knew this 4 years ago but had forgotten it. Woot, me growing old or what??? So; this is the problem/solution; I'll note it down here so when in another 4 years I forget it again someone can point me to this and call me a bloody feather-head... :eek: When building a kernel with modules that are to be included in the built-in-initramfs there is a slight inconsistancy in the build mechanics; the initramfs image is built in "make" phase but the modules are built in "make modules"; this means that you have to build modules before zImage, else your make will of course fail due to the missing modules. Now, when you do "make modules" before "make", you get the modules but there are some dependencies missing and the build system will not warn you about it.... The correct procedure to do it is this;
And now Bob's your uncle and you will have a new shiny working combined kernel image in ./arch/arm/boot/zImage Note to self; I need to write a sedscript to do the comment/uncomment thingy... |
Re: Introducing ubiboot N9 (multiboot OS loader)
Quote:
it feels good not to be the only one! :D |
Re: Introducing ubiboot N9 (multiboot OS loader)
Released ubiboot-02 (integrated) version, rev. 0.3.9
New features: N/ABug fixes: Fix login to device in repair modeGeneral enhancements: N/AWork in progress: N/AGet it fresh from HERE See the README file See the Changelog file Installation notes: This version uses internal interface version 5 which was introduced in version 0.3.8. If you have 0.3.8 it is enough to just flash the kernel. If you are updating from older version you need to update the kernel, config file and cpio to be of the new version. |
All times are GMT. The time now is 22:57. |
vBulletin® Version 3.8.8