maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Alternatives (https://talk.maemo.org/forumdisplay.php?f=36)
-   -   Introducing ubiboot N9 (multiboot OS loader) (https://talk.maemo.org/showthread.php?t=89345)

yemko 2014-03-13 12:23

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Downgrading! hope 4.0.4 is smooth and less lag to 4.1.1

yemko 2014-03-13 12:43

Re: Introducing ubiboot N9 (multiboot OS loader)
 
wanna flash Sailfish 1.0.2.5 with http://www.swagman.org/juice/ubiboot/ubiboot-02/ Donno how to edit the cpio file. can someone pls edit cpio and conf for me? Just like there is separate cpio and conf for sailfish

juiceme 2014-03-24 08:31

Re: Introducing ubiboot N9 (multiboot OS loader)
 
As some people have been unable to reach the ubiboot home page due to tight abuse filtering of our administration, I have requested opening of a non-blocked port for the site.

(For example, most of mainland China addresses are blocked by our sysadmin...)

Now, all locations on the world should be able to use http://www.swagman.org:8008/juice/ubiboot/

imyaman 2014-03-30 05:48

black screen problem with ubiboot
 
I've got 4 partitions successfully on my n950 by moslo.
I've put sailfish(vgrade-sailfish_r5.1.tar.bz2) on the 4th partiton
I've installed ubiboot (I used ubiboot-02_0.3.5_131213_SFOS.tar).
ubiboot showed me 3 choices(Hamarattan, Sailfish and Information).
When I selected Hamarattan or Sailfish icon, the screen turned black and stopped working.
ubiboot.log and ubiboot.dmesg showed kernel is loaded and partitions are mounted.

Is there anyone with the same problem?

peterleinchen 2014-03-30 07:31

Re: Introducing ubiboot N9 (multiboot OS loader)
 
As you did not mention and it is one of the most happened mistakes (to miss those preinit_harmattan file or not them not having executable flag), I guess you missed to put the proper preinit files on harmattans '/sbin/' directory.

imyaman 2014-03-30 10:38

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by peterleinchen (Post 1419108)
As you did not mention and it is one of the most happened mistakes (to miss those preinit_harmattan file or not them not having executable flag), I guess you missed to put the proper preinit files on harmattans '/sbin/' directory.

Thank you.

Both preinit and preinit_harmattan has executable flags. permissions are 755. Both are in /sbin directory of the 2nd partition.
and still same problem.

coderus 2014-03-30 11:37

Re: Introducing ubiboot N9 (multiboot OS loader)
 
didnt put harmattan kernel and unpacked sailfish tar with no --numeric-owner option? :)

imyaman 2014-03-30 12:20

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by coderus (Post 1419130)
didnt put harmattan kernel and unpacked sailfish tar with no --numeric-owner option? :)

Thank you.

I sure I used the option --numeric-owner.
Please give me some hints.


** ubiboot.dmesg **
Quote:

Sat Mar 29 16:19:53 UTC 2014
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 2.6.32.54-ubiboot-02-b (juice@osiris) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #3 PREEMPT Wed Oct 30 00:51:46 EET 2013
[ 0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7f
[ 0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[ 0.000000] Machine: Nokia RM-680 board
[ 0.000000] Overriding kernel command line
[ 0.000000] Original command line: init=/sbin/preinit root=/dev/mmcblk0p2 rootwait rootflags=errors=remount-ro rootfstype=ext4 rw mtdoops.mtddev=log mtdoops.record_size=65536 console=tty0 mtdparts=omap2-onenand:1024k(bootloader),2816k@1024k(config),1638 4k@3840k(kernel),2048k@20224k(log),469248k@22272k( var),32768k@491520k(moslo) bootreason=pwr_key bootmode=normal nolo=2.3.6 product_name=RM-680 imei=357881040025191 g_nokia.iSerialNumber=357881040025191 serialnumber=ZUA031548 omap_sec.kci=916 battery-type=BL-4D gpio=cmt_apeslpx:93:sysfs:output,cmt_en:23:sysfs:i nit_active:output,cmt_rst_rq:88:sysfs:init_active: output,keypad_slide:109:key:inverted,sleep_ind:92: sysfs:output omapdss.def_disp_enabled=1 vhash=285e93eebfdded180a3ffdf0a42c0d09b0d8ce8a product_model=N950 hwid=1124
[ 0.000000] Reserving 14680064 bytes SDRAM for VRAM
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
[ 0.000000] OMAP3630 ES1.2-hs (l2cache iva sgx neon isp 192mhz_clk )
[ 0.000000] SRAM: Mapped pa 0x40200000 to va 0xfe400000 size: 0x100000
[ 0.000000] On node 0 totalpages: 257024
[ 0.000000] free_area_init_node: node 0, pgdat b0643620, node_mem_map b18f4000
[ 0.000000] Normal zone: 2048 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 254976 pages, LIFO batch:31
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 254976
[ 0.000000] Kernel command line: init=/init root=0xB302 rootfstype=ext4 rw console=ttyS0,115200n8 mtdparts=omap2-onenand:1024k(bootloader),2816k@1024k(config),1638 4k@3840k(kernel),2048k@20224k(log),469248k@22272k( var),32768k@491520k(moslo) gpio=cmt_apeslpx:93:sysfs:output,cmt_en:23:sysfs:i nit_active:output,cmt_rst_rq:88:sysfs:init_active: output,sleep_ind:92:sysfs:output
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] allocated 5242880 bytes of page_cgroup
[ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[ 0.000000] Memory: 1002MB 2MB = 1004MB total
[ 0.000000] Memory: 988160KB available (5816K code, 19380K data, 156K init, 0K highmem)
[ 0.000000] SLUB: Genslabs=9, HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] NR_IRQS:402
[ 0.000000] Clocking rate (Crystal/Core/MPU): 38.4/390/600 MHz
[ 0.000000] Reprogramming SDRC clock to 390400000 Hz
[ 0.000000] GPMC revision 5.0
[ 0.000000] IRQ: Found an INTC at 0xfa200000 (revision 4.0) with 96 interrupts
[ 0.000000] Total of 96 interrupts on 1 active controller
[ 0.000000] OMAP GPIO hardware version 2.5
[ 0.000000] OMAP clockevent source: GPTIMER1 at 32768 Hz
[ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
[ 0.000000] Console: colour dummy device 80x30
[ 0.000122] Calibrating delay loop... 597.64 BogoMIPS (lpj=2334720)
.
.
<snip>
.
.

[ 3.396514] UBI: max/mean erase counter: 2/1
[ 3.400787] UBI: image sequence number: 1214228226
[ 3.405670] UBI: background thread "ubi_bgt0d" started, PID 120
[ 3.415496] UBIFS error (pid 121): ubifs_get_sb: cannot open "ubi0:moslo", error -19
[ 3.424041] UBI DBG (pid 122): ubi_detach_mtd_dev: detaching mtd5 from ubi0
[ 3.426086] UBI: mtd5 is detached from ubi0
[ 3.460388] EXT2-fs: mmcblk0p2: couldn't mount because of unsupported optional features (244).
[ 3.468292] EXT3-fs: mmcblk0p2: couldn't mount because of unsupported optional features (240).
[ 3.514434] EXT4-fs (mmcblk0p2): recovery complete
[ 3.514556] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode
[ 3.539886] EXT2-fs: mmcblk0p3: couldn't mount because of unsupported optional features (244).
[ 3.547790] EXT3-fs: mmcblk0p3: couldn't mount because of unsupported optional features (240).
[ 3.601165] EXT4-fs (mmcblk0p3): recovery complete
[ 3.601287] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode
[ 3.626739] EXT2-fs: mmcblk0p4: couldn't mount because of unsupported optional features (244).
[ 3.634643] EXT3-fs: mmcblk0p4: couldn't mount because of unsupported optional features (240).
[ 3.684967] EXT4-fs (mmcblk0p4): recovery complete
[ 3.689758] EXT4-fs (mmcblk0p4): mounted filesystem with ordered data mode
[ 4.616516] g_multi gadget: using random self ethernet address
[ 4.616821] g_multi gadget: using random host ethernet address
[ 4.627532] usb0: MAC 76:a4:ce:9a:5d:69
[ 4.627624] usb0: HOST MAC 36:0b:14:aa:2f:c9
[ 4.639770] g_multi gadget: Mass Storage Function, version: 2009/09/11
[ 4.640777] g_multi gadget: Number of LUNs=1
[ 4.645172] lun0: LUN: removable file: /dev/mmcblk0
[ 4.650054] g_multi gadget: Multifunction Composite Gadget, version: 2009/07/21
[ 4.657409] g_multi gadget: g_multi ready
[ 5.068847] g_multi gadget: high speed config #2: Multifunction Composite (RNDIS + MS + ACM)
[ 5.071777] musb_hdrc periph: enabled ep2in for int IN, maxpacket 8
[ 5.071838] musb_hdrc periph: enabled ep1in for bulk IN, maxpacket 512
[ 5.071868] musb_hdrc periph: enabled ep1out for bulk OUT, maxpacket 512
[ 5.071960] musb_hdrc periph: enabled ep4in for int IN, maxpacket 10
[ 5.071990] musb_hdrc periph: enabled ep3in for bulk IN, maxpacket 512
[ 5.072021] musb_hdrc periph: enabled ep2out for bulk OUT, maxpacket 512
[ 5.072235] musb_hdrc periph: enabled ep5in for bulk IN, maxpacket 512
[ 5.072265] musb_hdrc periph: enabled ep3out for bulk OUT, maxpacket 512
[ 10.114624] mmc_queue_do_make_request process file-storage (pid 240), read to sector 0, sectors 8
[ 343.118072] EXT2-fs: mmcblk0p2: couldn't mount because of unsupported optional features (240).
[ 343.133789] EXT3-fs: mmcblk0p2: couldn't mount because of unsupported optional features (240).
[ 343.170135] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode
[ 343.226531] EXT2-fs: mmcblk0p3: couldn't mount because of unsupported optional features (240).
[ 343.242279] EXT3-fs: mmcblk0p3: couldn't mount because of unsupported optional features (240).
[ 343.284820] EXT4-fs (mmcblk0p3): mounted filesystem with ordered data mode
[ 343.336944] EXT2-fs: mmcblk0p4: couldn't mount because of unsupported optional features (240).
[ 343.352722] EXT3-fs: mmcblk0p4: couldn't mount because of unsupported optional features (240).
[ 343.391082] EXT4-fs (mmcblk0p4): mounted filesystem with ordered data mode
** ubiboot.log **
Quote:

Mar 29 16:14:03 (none) syslog.info syslogd started: BusyBox v1.19.4
Mar 29 16:14:04 (none) user.notice root: N9 ubiboot ver. 0.3.5
Mar 29 16:14:04 (none) user.notice root: kernel Linux (none) 2.6.32.54-ubiboot-02-b #3 PREEMPT Wed Oct 30 00:51:46 EET 2013 armv7l GNU/Linux
Mar 29 16:14:04 (none) user.notice root: Rootfs build info: ROOTFS created by juice@osiris on Wed Oct 30 00:51:29 EET 2013 (svn rev. 65)
Mar 29 16:14:04 (none) user.notice root: Mounted /dev/mmcblk0p1 on /mnt/1 as VFAT
Mar 29 16:14:04 (none) user.notice root: Mounted /dev/mmcblk0p2 on /mnt/2 as EXT4
Mar 29 16:14:05 (none) user.notice root: Mounted /dev/mmcblk0p3 on /mnt/3 as EXT4
Mar 29 16:14:05 (none) user.notice root: Mounted /dev/mmcblk0p4 on /mnt/4 as EXT4
Mar 29 16:14:05 (none) user.notice root: Could not mount /dev/mmcblk0p5 on /mnt/5
Mar 29 16:14:05 (none) user.notice root: Could not mount /dev/mmcblk0p6 on /mnt/6
Mar 29 16:14:05 (none) user.notice root: Could not mount /dev/mmcblk0p7 on /mnt/7
Mar 29 16:14:05 (none) user.notice root: Found /mnt/1/boot/ubiboot.conf
Mar 29 16:14:05 (none) user.notice root: Copied archive /mnt/1/boot/ubiboot-02.035_SF_v1.cpio (md5sum=bd7db93338930a172440be327c00c037)
Mar 29 16:14:05 (none) user.notice root: Umounting /mnt/1
Mar 29 16:14:05 (none) user.notice root: Umounting /mnt/2
Mar 29 16:14:05 (none) user.notice root: Umounting /mnt/3
Mar 29 16:14:05 (none) user.notice root: Umounting /mnt/4
Mar 29 16:14:05 (none) user.notice root: Umounting /mnt/5
Mar 29 16:14:05 (none) user.notice root: Umounting /mnt/6
Mar 29 16:14:05 (none) user.notice root: Umounting /mnt/7
Mar 29 16:14:05 (none) user.notice root: Config version is 3
Mar 29 16:14:05 (none) user.notice root: Archive cpio version is 3
Mar 29 16:14:05 (none) user.notice root: Archive cpio build info: CPIO packed by juice@osiris on Fri Dec 13 09:06:30 EET 2013 (svn rev. N/A)
Mar 29 16:14:05 (none) user.notice root: bootreason: pwr_key
Mar 29 16:14:05 (none) user.notice root: bootmode: normal
Mar 29 16:14:05 (none) user.notice root: Started watchdog kicker
Mar 29 16:14:05 (none) user.notice root: Started maintanance mode
Mar 29 16:14:05 (none) user.notice root: Display Text: Welcome to N9 Ubiboot ver. 0.3.5
Mar 29 16:14:05 (none) user.notice root: Display Text: (Boot loader is based on MOSLO ver. 0.0.13.1)
Mar 29 16:14:05 (none) user.notice root: Display Text:
Mar 29 16:14:05 (none) user.notice root: Umounting /mnt/1
Mar 29 16:14:05 (none) user.notice root: Umounting /mnt/2
Mar 29 16:14:05 (none) user.notice root: Umounting /mnt/3
Mar 29 16:14:05 (none) user.notice root: Umounting /mnt/4
Mar 29 16:14:06 (none) user.notice root: Umounting /mnt/5
Mar 29 16:14:06 (none) user.notice root: Umounting /mnt/6
Mar 29 16:14:06 (none) user.notice root: Umounting /mnt/7
Mar 29 16:14:06 (none) user.notice root: Display Text: Try 1 (0)
Mar 29 16:14:07 (none) user.notice root: Display Text: Partitons exported successifully via USB
Mar 29 16:14:07 (none) user.notice root: Display Text: Configured 192.168.2.15 on USB
Mar 29 16:14:07 (none) user.notice root: Starting DHCP server, offering 192.168.2.100
Mar 29 16:14:07 (none) user.notice root: Display Text: Starting DHCP server, offering 192.168.2.100
Mar 29 16:14:07 (none) user.notice root: Starting TELNET server
Mar 29 16:14:07 (none) local0.info dnsmasq[261]: started, version 2.45 DNS disabled
Mar 29 16:14:07 (none) local0.info dnsmasq[261]: compile time options: IPv6 GNU-getopt no-ISC-leasefile no-DBus no-I18N TFTP
Mar 29 16:14:07 (none) local0.info dnsmasq[261]: DHCP, IP range 192.168.2.100 -- 192.168.2.100, lease time 416d15h
Mar 29 16:14:07 (none) local0.warn dnsmasq[261]: failed to access /etc/resolv.conf: No such file or directory
Mar 29 16:14:07 (none) user.notice root: Display Text: Starting TELNET server
Mar 29 16:14:07 (none) user.notice root: Starting SSH server
Mar 29 16:14:07 (none) user.notice root: Display Text: Starting SSH server
.
.
<snip>
.
.
Mar 29 16:19:44 (none) user.notice root: Exit maintanance mode
Mar 29 16:19:44 (none) user.notice root: Mounted /dev/mmcblk0p1 on /mnt/1 as VFAT
Mar 29 16:19:44 (none) user.notice root: Mounted /dev/mmcblk0p2 on /mnt/2 as EXT4
Mar 29 16:19:44 (none) user.notice root: Mounted /dev/mmcblk0p3 on /mnt/3 as EXT4
Mar 29 16:19:44 (none) user.notice root: Mounted /dev/mmcblk0p4 on /mnt/4 as EXT4
Mar 29 16:19:44 (none) user.notice root: Could not mount /dev/mmcblk0p5 on /mnt/5
Mar 29 16:19:44 (none) user.notice root: Could not mount /dev/mmcblk0p6 on /mnt/6
Mar 29 16:19:45 (none) user.notice root: Could not mount /dev/mmcblk0p7 on /mnt/7
Mar 29 16:19:46 (none) user.notice root: Starting menu launcher
Mar 29 16:19:46 (none) user.notice root: Reached end of init!
Mar 29 16:19:46 (none) user.notice root: Checked that configuration is correct for this CPIO
Mar 29 16:19:46 (none) user.notice root: Started SailfihOS edition of menuscripts
Mar 29 16:19:46 (none) user.notice root: Compiled by juiceme 13.11.2013
Mar 29 16:19:46 (none) user.notice root: Loading animation control file
Mar 29 16:19:46 (none) user.notice root: touchdevice: /dev/input/event3
Mar 29 16:19:46 (none) user.notice root: O_COMMAND_LINE: init=/sbin/preinit root=/dev/mmcblk0p2 rootwait rootflags=errors=remount-ro rootfstype=ext4 rw mtdoops.mtddev=log mtdoops.record_size=65536 console=tty0 mtdparts=omap2-onenand:1024k(bootloader),2816k@1024k(config
Mar 29 16:19:46 (none) user.notice root: Started animated OS selection menu
Mar 29 16:19:52 (none) user.notice root: Selected second level menu for OS4
Mar 29 16:19:52 (none) user.notice root: Autobooting OS4 with kernel line 1
Mar 29 16:19:52 (none) user.notice root: Selecting Sailfish OS, running kernel /boot/Sailfish/boot/bzImage
Mar 29 16:19:53 (none) user.notice root: Appending options to CMDLINE: vram=6m omapfb.vram=0:6M
Mar 29 16:19:53 (none) user.notice root: Loading kernel /boot/Sailfish/boot/bzImage
Mar 29 16:19:53 (none) user.notice root: kexec_load() successful
Mar 29 16:19:53 (none) user.notice root: Restarting to selected OS
Mar 29 16:19:53 (none) user.notice root: Saving ubiboot log files
Mar 29 16:19:53 (none) user.notice root: logfile partition is mounted to /mnt/1

juiceme 2014-03-31 05:15

Re: black screen problem with ubiboot
 
Quote:

Originally Posted by imyaman (Post 1419101)
I've got 4 partitions successfully on my n950 by moslo.
I've put sailfish(vgrade-sailfish_r5.1.tar.bz2) on the 4th partiton

I think that's the thing, you have Sailfish on /dev/mmcblk0p4, however, in your log I can see:

Quote:

Originally Posted by imyaman (Post 1419101)
Mar 29 16:19:46 (none) user.notice root: O_COMMAND_LINE: init=/sbin/preinit root=/dev/mmcblk0p2 rootwait rootflags=errors=remount-ro rootfstype=ext4 rw mtdoops.mtddev=log mtdoops.record_size=65536 console=tty0 mtdparts=omap2-onenand:1024k(bootloader),2816k@1024k(config

What this means, is that your Sailfish kernel, when booting, is trying to find the OS on the partition 2.

How to fix that; check your ubiboot.conf, and find the line that defines the OS location, "G_OS<x>_PARTITION=2" in the SailfishOS section, and change the "2" to "4" :)

pasko 2014-04-13 10:37

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Hi.
I have a bricked device I can flash without problems,but is not booting in any way. However I have been able to boot the ubiboot kernel and see the exported partitions.
Is it possible to either:
1. Install the backup from another device (including the filesystem, partitions, all )
or
2.- Boot the device on Sailfish without Harmattan installed in the device ?

Sorry if this a repeated issue.

Regards.

juiceme 2014-04-13 16:53

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by pasko (Post 1421213)
Hi.
I have a bricked device I can flash without problems,but is not booting in any way. However I have been able to boot the ubiboot kernel and see the exported partitions.
Is it possible to either:
1. Install the backup from another device (including the filesystem, partitions, all )

Yes, pretty easy to do. All you have to do, is first boot the alive device with ubiboot, note down the partition layout, and "tar -cvf" the partitions to external mount or network drive.
Then ubiboot the broken device, create partitions and restore the data from tarfiles.
There's just one caveat; the dead device must not have broken CAL or boot partitions on the mtd NAND, since there is no way you can safely rewrite those areas under Open Mode.


Quote:

Originally Posted by pasko (Post 1421213)
2.- Boot the device on Sailfish without Harmattan installed in the device ?

That's even easier, with ubiboot you do not need harmattan at all if you choose not to use it.
You can even have your own partition layout, even delete all partitions and create just one to hold your SailfishOS, to get easy access to full filesystem :D

pasko 2014-04-13 17:22

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Wow!
Many thanks for your answer.
Do you know how can I check the CAL and mtd NAND part ?. Does it mean that there are two copies of the boot partition in the device ?
Sorry if it has been answered before.
Regards.

pasko 2014-04-13 17:36

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Hi.
One more question.
Regarding the 'alive' device:
Will it be back to 'normal' if I reflash it with the stock kernel image (I suppose that I can extract it before from the file sistem) after flashing the ubiboot image, or do I have to take something else into account ?
Regards.

peterleinchen 2014-04-13 21:25

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Yes, alive device will be fully functional as before. With one differemce: it will be in OpenMode (no write acccess to CAL ?: no device lock code possible! But even for that there is a solution) as flashing an OpenMode (ubiboot) kernel will bring the device to that stage. No return (other than full reflash).
To bring your alive device back to normal just flash the FW image with option --flash-only=kernel.

pasko 2014-04-13 22:33

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by juiceme (Post 1421247)
That's even easier, with ubiboot you do not need harmattan at all if you choose not to use it.
You can even have your own partition layout, even delete all partitions and create just one to hold your SailfishOS, to get easy access to full filesystem :D

I've been tinkering with the 2nd option, following the wiki and a youtube video. I have also used the special ubiboot version for dual-boot with sailfish.... still not working.
When booting with ubiboot I can see the initial animation with two options: Meego and Sailfish.
When I tap in the Info option, the credits are showed and tapping on 'back' the main menu is shown, but whenever I tap on Sailfish (or Meego) icons, the screen turns to black and nothing happens. Only once it showed the text message:
Code:

Boot OS/kernel selection failed! Please run a maintanance boot
I'm starting to think there's a problem between bootmanager and actual OS/Kernel loading since it is happening the same with Sailfish and Harmattan, or even a hardware problem...
The weird thing is that I can boot/telnet/tinker into the device with ubiboot (i.e: when connected to usb cable), and all files/partitions, etc. look ok. I've even been able to see the logs/dmesg files generated by ubiboot.
Can this be related to the CAL or mtd NAND mentioned for the first option?

Thank you very much for your suggestions juiceme (and for peterleinchen too)

Regards.

juiceme 2014-04-14 07:27

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by pasko (Post 1421294)
Only once it showed the text message:
Code:

Boot OS/kernel selection failed! Please run a maintanance boot

Whenever there's a boot problem, you should look at the ubiboot log file which will detail what the actual problem is.

Now boot back to ubiboot, and do one of these things; Either look at the exported folders on your PC for the place you have your ubiboot.config file or mount it to ubiboot filesyftem while telnetted in the device. (the default location is mmcblk0p1:/boot/ubiboot.log unless you have changed it yourself)

Please post the logfile, so I can see what is your problem.


Quote:

Originally Posted by pasko (Post 1421294)
I'm starting to think there's a problem between bootmanager and actual OS/Kernel loading since it is happening the same with Sailfish and Harmattan, or even a hardware problem...

No, fortunately this is not the case here.
If you can boot with ubiboot up to the stage where you see the icons, then it means your device is well bootable up to SailfishOS or Nemo. It most probably is also bootable to Harmattan, at least you know now that the bootchain is healthy.


Quote:

Originally Posted by pasko (Post 1421294)
The weird thing is that I can boot/telnet/tinker into the device with ubiboot (i.e: when connected to usb cable), and all files/partitions, etc. look ok. I've even been able to see the logs/dmesg files generated by ubiboot.
Can this be related to the CAL or mtd NAND mentioned for the first option?

No, if you can flash ubiboot kernel and boot up with it, your device is healthy.

Just post the log, let's see what's wrong with it.

pasko 2014-04-14 15:57

Re: Introducing ubiboot N9 (multiboot OS loader)
 
1 Attachment(s)
Hi.

Here's what I did to generate the log files:

1.- Boot the device connected to usb
2.- Disconnect from USB, boot menu appears.
3.- Select Sailfish OS
3.- Black screen..... waith 2 minutes and turn-off via power button
4.- Reconnect USB. Device boots again
5.- Copy logs from mmcblk0p1:/boot/ (Nokia N9 partition)

And this is all :)

The tar file in the attachment contains both ubiboot.dmesg and ubiboot.log

juiceme 2014-04-15 05:39

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by pasko (Post 1421371)
Hi.

Here's what I did to generate the log files:

1.- Boot the device connected to usb
2.- Disconnect from USB, boot menu appears.
3.- Select Sailfish OS
3.- Black screen..... waith 2 minutes and turn-off via power button
4.- Reconnect USB. Device boots again
5.- Copy logs from mmcblk0p1:/boot/ (Nokia N9 partition)

And this is all :)

The tar file in the attachment contains both ubiboot.dmesg and ubiboot.log

Okay, according to the logfiles, your system does find both SailfishOS and Harmattan kernels correctly, which is a nice thing.
However, this version of ubiboot you have does not make further checks on whether your init files are reachable, so that is a potential problem;

Please check that you have /sbin/preinit_harmattan on your mmcblk0p2 and that it is readable and executable by root, and similarily that you have /sbin/init on mmcblk0p4, also readable and executable by root.

I assume here that you have your Harmattan on p2 and SailfisOS on p4, right?

Also, please can you post your ubiboot.conf.

There is one thing also which caugth my eye, which might be relevant or not; The HW revision of your device is 1507 which is fairly rare AFAIK and as I checked my logs, there were previously some reports that some people could not boot 2nd-level kernel with it.
At least Hurrian, valdur55 and Max9 have had problems with 1507 but I do not remember if the issues were resolved at some point.

pasko 2014-04-15 16:17

Re: Introducing ubiboot N9 (multiboot OS loader)
 
1 Attachment(s)
Quote:

Originally Posted by juiceme (Post 1421430)
I assume here that you have your Harmattan on p2 and SailfisOS on p4, right?

Also, please can you post your ubiboot.conf.

There is one thing also which caugth my eye, which might be relevant or not; The HW revision of your device is 1507 which is fairly rare AFAIK and as I checked my logs, there were previously some reports that some people could not boot 2nd-level kernel with it.

Hi.
Yes, the preinit* files had read/exec permission in both cases, and the distribution of OS/partitions is the one you mentioned. I changed all permissions to 777 for both files, just in case :P

In one of the attempts I made, the message of 'Maintenance boot' was displayed, afterwards I saw some modified files (depmod,insmod, modprobe, lsmod and others according to their modification/access dates) at /sbin in Sailfish partition. I was trying something I've read Coderus wrote: tapping several times after selecting the sailfish icon.

Regarding the HW revision I think there's not much to add, but would explain the fact that none of the OSs is booting in 2nd stage (i.e: after ubiboot kernel)

The ubiboot.conf file I think is the original one, without modifications.

Regards.

juiceme 2014-04-15 19:32

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by pasko (Post 1421488)
Hi.
Yes, the preinit* files had read/exec permission in both cases, and the distribution of OS/partitions is the one you mentioned. I changed all permissions to 777 for both files, just in case :P

In one of the attempts I made, the message of 'Maintenance boot' was displayed, afterwards I saw some modified files (depmod,insmod, modprobe, lsmod and others according to their modification/access dates) at /sbin in Sailfish partition. I was trying something I've read Coderus wrote: tapping several times after selecting the sailfish icon.

Regarding the HW revision I think there's not much to add, but would explain the fact that none of the OSs is booting in 2nd stage (i.e: after ubiboot kernel)

The ubiboot.conf file I think is the original one, without modifications.

Regards.

Okay, as you have the default installation those things should be in order.

Basically there are 2 different cases here, booting Harmattan and booting SailfishOS.

Booting Harmattan is usually the trickier one, even Harmattan in Open Mode has some ties to the device's securety framework and problems accessing either the chipset internal functions or the mtd CAL partition will prevent booting. Also there might be something with the HW version that affect things.
One thing you could try, is to set the device in developer mode and disable the life-saver watchdogs. In some cases that has helped.

Booting SailfishOS should be easier in theory. At least booting Nemo works in cases that Harmattan won't boot and Sailfish base is built on top of Nemo.
Now, problems with Nemo/Sailfish usually are caused by incorrect extraction of the FS tarfile, which needs to be done with the --numeric-owner option to recreate the correct permissions to all files.

What is your SailfishOs version, and how did you extract it to partition 4?

pasko 2014-04-15 19:59

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Hi.

Thank you again.

Regarding the Sailfish version & extract command:

Code:

sudo tar --numeric-owner -xvf sailfish.tar.bz2 -C /media/Alt_OS/
sailfish.tar.bz2 is a file renamed from file vgrade-jolla-1.0.3.7.tar.bz2 (downloaded from http://images.formeego.org/n950/sailfish/ )

Regards.

P.S: I don't think I can put the device in developer mode: it won't boot Harmattan even after a fresh reflash. Bought it as 'for parts' :(

peterleinchen 2014-04-15 20:11

Re: Introducing ubiboot N9 (multiboot OS loader)
 
@pasko
Development (not the developer) equal to R&D mode ;) (done via flasher)

About sailfish OS you should use older release not higher than 1.0.2.5 (r5.1). Higher releases will need (atm) N9-unsupported kernels...

--
but as you bought for spare parts, dont you think too something could be borked up?

pasko 2014-04-15 20:40

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Hi.

I'm starting to loose my faith. Can't activate R&D mode:

Code:

Battery level 89 %, continuing.

    image        [state    progress        transfer    flash speed]
---------------------------------------------------------------------
[x] kernel      [finished  100 %  11672 /  11672 kB    5853 kB/s]
Updating SW release
ERROR: SU_SET_PARAMETER_REQ terminated with error code 10: Security failure
ERROR: Could not set R&D flags
ERROR: Failed to set R&D mode

Also, I found a post in this forum from someone I think was the previous owner :D
I think we're duplicating efforts....
Also tried Sailfish 1.0.2.5 (r5), nothing. Will try now r5.1
Regards.

juiceme 2014-04-15 20:59

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by peterleinchen (Post 1421527)
Development (not the developer) equal to R&D mode ;) (done via flasher)

Of course, R&D mode is what I meant, mistakenly wrote "developer mode" :D

juiceme 2014-04-15 21:08

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by pasko (Post 1421530)
I'm starting to loose my faith. Can't activate R&D mode

Yeah, it looks like the device is so borked it will not run Harmattan.

However, as long as you can start ubiboot, you can use it with Nemo or SailfishOS.

Regarding your untar command, if I remember correctly the order of the flags matters, you need to put the "double-dash" options after the -f option, like this:
sudo tar -xvzf sailfish.tar.bz2 --numeric-owner -C /media/Alt_OS/

(of course it might depend on implementation/version...)

And moreover, I'd recommend you bunzip2 the file on your linux box, copy the resulting tarfile to forex. your partition 1, unmount partitions, go to ubiboot console, mount partitions 1 & 4, and then untar the archive on device itself with:
tar -xvf /mnt/1/sailfish.tar --numeric-owner -C /mnt/4/

pasko 2014-04-15 22:45

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Hi.

I made everything as you specified and it's just the same. I get your point sayin' that if it can boot ubiboot, it should also boot sailfish. However I've seen that the 2nd kernel is loaded via kexec_load().

The point is:
Are there any chances to boot directly from scratch the Sailfish kernel? That way we would eliminate the intermediate kexec_load call and hopefully solve the problem.

Or maybe I can resell it for parts again...

Regards.

pasko 2014-04-15 23:02

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Hello again.

I finally managed to put the device in R&D mode.
I made it using the flasher-3.5 tool.

Code:

LAPTOP2:~/boot$ sudo flasher-3.5 -f  --enable-rd-modeflasher v2.5.2 (Oct 21 2009)

USB device found found at bus 001, device address 123.
Found device RM-696, hardware revision 1507
NOLO version 2.3.6
Version of 'sw-release': DFL61_HARMATTAN_40.2012.21-3.454.6_PR_454
The device is now in R&D mode

Now it shows a wrench in the screen :confused:

pasko 2014-04-15 23:17

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Hi.
Quote:

Originally Posted by juiceme (Post 1421521)
One thing you could try, is to set the device in R&D mode and disable the life-saver watchdogs. In some cases that has helped.

Now that I have R&D mode active: How do I disable the live-saver watchdogs?

Regards.

juiceme 2014-04-16 04:51

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by pasko (Post 1421539)
The point is:
Are there any chances to boot directly from scratch the Sailfish kernel? That way we would eliminate the intermediate kexec_load call and hopefully solve the problem.

The answer to this is, of course both yes and no, just as to any question really... :D

Yes, you can easily check whether yuor device can boot directly to SailfishOS, you just need to extract your FS image to partition 2.
It doess not matter what size or how many partitions you have (unless it is at least two...), just extract the tarfile to mmcblk0p2.

The reason for this is that the N9 boot loader starts the kernel with command line parameter telling it to mount the partition 2 as the root filesystem.

The "no" part comes from the thing that even as you can boot SFOS that way, it is not very usable to you as it is :D
For correct operation of Wayland you need to set up the framebuffer a bit differently than wht is default, or your screen will be messed up.

The device will be fully functional, you will be able for ecample to ssh in and do everything from the console, just the graphical UI will be messed up.

Then there is the correct solution, of course, but it requires a bit more work, and of course it is the most rewarding experience for you, since it will also hopefully teach you new things :)

To make it fully functional, you need to patch the kernel configuration so that it will use built-in command line instead of the one given by boot loader. This is one of the things ubiboot normally does for you.

Just set the following options:
Code:

CONFIG_CMDLINE_OVERRIDE=y

CONFIG_CMDLINE="init=/sbin/init root=/dev/mmcblk0p2 rootwait rootflags=errors=remount-ro rootfstype=ext4 rw console=ttyS0,115200n8 vram=6m omapfb.vram=0:6M mtdparts=omap2-onenand:1024k(bootloader),2816k@1024k(config),16384k@3840k(kernel),2048k@20224k(log),469248k@22272k(var),32768k@491520k(moslo) gpio=cmt_apeslpx:93:sysfs:output,cmt_en:23:sysfs:init_active:output,cmt_rst_rq:88:sysfs:init_active:output,sleep_ind:92:sysfs:output"


The magic here is the bit saying vram=6m omapfb.vram=0:6M, that will tell kernel to use just one large framebuffer device instead of two smaller ones.
Of course at this point you can also define whatever you want as the rootFS device by changing the parameter root=/dev/mmcblk0p2

Then, just rebuild the kernel and flash it as your regular kernel.
The nice thing here is that you do not need to use scratchbox for building like with Harmattan kernels, you can use for example the regular Linero gnueabi toolchain that you can install in any linux box.

juiceme 2014-04-16 04:57

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by pasko (Post 1421541)
Now that I have R&D mode active: How do I disable the live-saver watchdogs?

sudo flasher --set-rd-flags=no-omap-wd,no-ext-wd,no-lifeguard-reset

pasko 2014-04-16 06:53

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Hi.
O.K. I think I got it all.:)

I'll try first disabling the watchdogs and if it doesn't work I'll go for the compile option.
I remember recompiling some years ago the software for my WiFi router....
From what you explained, the kernel for sailfish is OpenSource?

Regards.

juiceme 2014-04-16 07:31

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by pasko (Post 1421556)
Hi.
O.K. I think I got it all.:)

I'll try first disabling the watchdogs and if it doesn't work I'll go for the compile option.
I remember recompiling some years ago the software for my WiFi router....
From what you explained, the kernel for sailfish is OpenSource?

Yes, all that you need is open source. What you need is the kernel sources, I'd have to check what is the latest version of the Nemo kernel build tree and what is the correct config to use.

To compile, you'll need to install gcc-arm-linux-gnueabi package to your distribution (I use version 4.6.3)
Then, just patch your configuration, and configure and make the kernel (and also make the modules if you are building another version that what you already have on your FS image...):
ARCH=arm make n9_mer_defconfig // <-- if that is the correct config file...
ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make
ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- make modules
ARCH=arm CROSS_COMPILE=arm-linux-gnueabi- INSTALL_MOD_PATH=. make modules_install

And finally, copy the modules to your FS (if you needed to make them) and flash the kernel just as you would flash any normal Open Mode kernel for Harmattan, and you are ready to go :D

pasko 2014-04-16 21:43

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Hi.

I've spent all night just to be at the same point I was yesterday (I screwed something and had to start from scratch) and then being able to enable the R&D mode..... and nothing happened.
This means we'll have to go via the compiling option, but this will be next week.

I'm going to spend a few days with spare internet access for Easter Holiday.

Thank you.
Regards.

pasko 2014-04-16 22:11

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Hi.
Before I go to sleep I would like to ask:

1.- Which Linaro packages do I need to install in Ubuntu 12.04 just to be able to build the kernel?
2.- Where can I get the sources for the Sailfish kernel?

Regards.

juiceme 2014-04-17 09:54

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by pasko (Post 1421645)
Hi.
Before I go to sleep I would like to ask:

1.- Which Linaro packages do I need to install in Ubuntu 12.04 just to be able to build the kernel?

gcc-arm-linux-gnueabi and build-essential are enough.


Quote:

Originally Posted by pasko (Post 1421645)
2.- Where can I get the sources for the Sailfish kernel?

Well, the kernel is some Mer/Nemo kernel, and I could not find the sources for the exact version. However, I got kernel-adaptation-n950-n9-mer-n9-2.6.32-20121301 and am now building that, to try if it works with SailfisOS.
I'll report back when I have tested it.

pasko 2014-04-17 10:33

Hi.
Thank you again.
I will try it later when I'm back.
Regards.

juiceme 2014-04-17 10:55

Re: Introducing ubiboot N9 (multiboot OS loader)
 
As it happens, kernel-adaptation-n950-n9-mer-n9-2.6.32-2012130 seems to work nice on my device.

Would you like me to build you a version that hardboots from partition 4? (that is capable to be flashed directly to device, no ubiboot required...)

juiceme 2014-04-17 11:43

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Damn, just noticed that this branch is a bit older, to does not have the option CONFIG_CMDLINE_OVERRIDE available...

What this means is I need to either update to more recent source tree or patch the command line selection code to the current tree.

Anyway I cannot finish it now, I'll have to continue later.

pasko 2014-04-18 14:03

Hi.
Will this mean that the modules should be also recompiled? If so, the flashed image is no longer valid..
Regards.

juiceme 2014-04-18 15:38

Re: Introducing ubiboot N9 (multiboot OS loader)
 
Quote:

Originally Posted by pasko (Post 1421819)
Hi.
Will this mean that the modules should be also recompiled? If so, the flashed image is no longer valid..
Regards.

Yes, you need both modules and the kernel.
However, nothing in the world is simpler than putting the new modules in, you just need to boot the device with ubiboot (just as you did when you untarred the FS originally there) and then copy the modules under the /lib/modules/<whatever_version>/ directory on your SailfishOS partition.

BTW, you do not need to flash ubiboot permanently to device, it it enough to use flasher to run it, just as you do when for example running maintanance kernel for malf-repairing.

Also, I just got near a computer, so when I get some time maybe today, I'll patch the CONFIG_CMDLINE_OVERRIDE option to my sources and recompile it (and modules) for you.


All times are GMT. The time now is 12:06.

vBulletin® Version 3.8.8