Petitboot, yet another bootloader based on KEXEC

Post Reply
thering1975
Posts: 78
Joined: Sat Apr 18, 2020 12:39 am
languages_spoken: english
Has thanked: 11 times
Been thanked: 12 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by thering1975 »

I know full well how SPI works and yes go ahead and try replacing that spiboot with the latest one you have flashed it to sd card (in mac osx). And then you will see the warning message that there is not enough room. Why would i say it if it was not the case?

And for info, i fired up linux, adjusted partition size of flashed image copied the spiboot accross WITHOUT issue and yes i now have SPI back.

https://www.youtube.com/watch?v=AAObNrkhg4w

Windows-

Image

And because i wanted to find out why the error message would show as logically it should not make a difference, i tested burning on Windows with RUFUS and it does indeed allow the file to be replaced. I then tested ETCHER on Windows and again that was fine. So the space issue appeared only when flashing via ETCHER on mac osx. So yes that is the issue.
Last edited by thering1975 on Sun Jul 26, 2020 6:44 pm, edited 1 time in total.

odroidn2user
Posts: 336
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 96 times
Been thanked: 88 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by odroidn2user »

On a slightly different note...

Any chance of maybe adding Microsoft Ergonomic Keyboard support to petitboot? It it ignored currently (dev20191127).

Code: Select all

I: Bus=0003 Vendor=045e Product=00db Version=0111
N: Name="Microsoft Natural® Ergonomic Keyboard 4000"
P: Phys=usb-0000:01:00.0-1.2/input1
S: Sysfs=/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2/1-1.2:1.1/0003:045E:00DB.0002/input/input1
U: Uniq=
H: Handlers=sysrq kbd event1 
B: PROP=0
B: EV=10001f
B: KEY=3f000300ff 0 0 483fff317aff32d bf54444600000000 1 130ff38b17c007 ffff7bfad9715fff ffbeffdfffefffff fffffffffffffffe
B: REL=40
B: ABS=100000000
B: MSC=10

User avatar
tobetter
Posts: 6050
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 276 times
Been thanked: 755 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter »

thering1975 wrote:
Sun Jul 26, 2020 5:29 pm
I know full well how SPI works and yes go ahead and try replacing that spiboot with the latest one you have flashed it to sd card (in mac osx). And then you will see the warning message that there is not enough room. Why would i say it if it was not the case?

And for info, i fired up linux, adjusted partition size of flashed image copied the spiboot accross WITHOUT issue and yes i now have SPI back.

https://www.youtube.com/watch?v=AAObNrkhg4w

Windows-

Image

And because i wanted to find out why the error message would show as logically it should not make a difference, i tested burning on Windows with RUFUS and it does indeed allow the file to be replaced. I then tested ETCHER on Windows and again that was fine. So the space issue appeared only when flashing via ETCHER on mac osx. So yes that is the issue.
No, you should not flash the file 'spiboot-*.img' using Etcher. It's not bootable image, but binary to be flash to SPI flash memory. Create a single partition file system to your SD card and format it. Then copy 'spiboot-20191127.img' to SD card as spiboot.img. After that restart your ODROID-N2 as SD card is attached, the Petitboot in SPI flash memory will start to update.

thering1975
Posts: 78
Joined: Sat Apr 18, 2020 12:39 am
languages_spoken: english
Has thanked: 11 times
Been thanked: 12 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by thering1975 »

tobetter wrote:
Sun Jul 26, 2020 7:24 pm

No, you should not flash the file 'spiboot-*.img' using Etcher. It's not bootable image, but binary to be flash to SPI flash memory. Create a single partition file system to your SD card and format it. Then copy 'spiboot-20191127.img' to SD card as spiboot.img. After that restart your ODROID-N2 as SD card is attached, the Petitboot in SPI flash memory will start to update.
Hi

Thanks for that but we were talking about the recovery image as my SPI was dead and non responsive i was following the guide on the Petitboot page which states

Download Recovery Image
Flash the image to micro SD card using Etcher
Then replace the old recovery spiboot on that with the latest, which did work and recovered SPI with latest version

User avatar
tobetter
Posts: 6050
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 276 times
Been thanked: 755 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter »

thering1975 wrote:
Sun Jul 26, 2020 7:27 pm
tobetter wrote:
Sun Jul 26, 2020 7:24 pm

No, you should not flash the file 'spiboot-*.img' using Etcher. It's not bootable image, but binary to be flash to SPI flash memory. Create a single partition file system to your SD card and format it. Then copy 'spiboot-20191127.img' to SD card as spiboot.img. After that restart your ODROID-N2 as SD card is attached, the Petitboot in SPI flash memory will start to update.
Hi

Thanks for that but we were talking about the recovery image as my SPI was dead and non responsive i was following the guide on the Petitboot page which states

Download Recovery Image
Flash the image to micro SD card using Etcher
Then replace the old recovery spiboot on that with the latest, which did work and recovered SPI with latest version
Ok, after flashing the recovery image, do you see the ver 20190408?
These users thanked the author tobetter for the post:
thering1975 (Sun Jul 26, 2020 7:59 pm)

thering1975
Posts: 78
Joined: Sat Apr 18, 2020 12:39 am
languages_spoken: english
Has thanked: 11 times
Been thanked: 12 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by thering1975 »

[/quote]
Ok, after flashing the recovery image, do you see the ver 20190408?
[/quote]

Hi

As mentioned i took that recovery image and changed the SPIBOOT file for your latest, and yes it worked fine, it flashed the current version i think 2st July 2020 from memory.

Anyways, it was a series of unrelated incidents that made me think i had issues. With that SPI and the Lineage 17.1 Android image freshly installed, i still had issues in android. However i decided to remove the 120gb Usb SSD as a test and what would you know, all the boot issues had vanished and SPI and Android is back to working fine. Not sure why the SSD was causing the issue for my boot as it only had files on it for Retroarch, however that i will work out next

User avatar
tobetter
Posts: 6050
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 276 times
Been thanked: 755 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter »

thering1975 wrote:
Sun Jul 26, 2020 8:02 pm
Ok, after flashing the recovery image, do you see the ver 20190408?
[/quote]

Hi

As mentioned i took that recovery image and changed the SPIBOOT file for your latest, and yes it worked fine, it flashed the current version i think 2st July 2020 from memory.

Anyways, it was a series of unrelated incidents that made me think i had issues. With that SPI and the Lineage 17.1 Android image freshly installed, i still had issues in android. However i decided to remove the 120gb Usb SSD as a test and what would you know, all the boot issues had vanished and SPI and Android is back to working fine. Not sure why the SSD was causing the issue for my boot as it only had files on it for Retroarch, however that i will work out next
[/quote]
Do you see the boot entry of the OS in your 120GB USB SSD? Can you let me know which OS is installed in it?

thering1975
Posts: 78
Joined: Sat Apr 18, 2020 12:39 am
languages_spoken: english
Has thanked: 11 times
Been thanked: 12 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by thering1975 »

Do you see the boot entry of the OS in your 120GB USB SSD? Can you let me know which OS is installed in it?
Hi

There is no OS on the SSD i was using that as local storage for Rom files for Retrogaming it was data storage only. For some reason that was affecting Android from booting correctly. Dont know why i will just format it and copy the data back across unless i can work out a way to map a network drive to android then i wont need it and it can find the roms on my NAS.

But yes SPI is back and Android EMMC and CoreElec on SD is working good again, thank you

mad_ady
Posts: 8567
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 578 times
Been thanked: 483 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by mad_ady »

[offtopic]If you figure out how to map a network drive in Android and be accesible from all apps, do let us know[/offtopic]

thering1975
Posts: 78
Joined: Sat Apr 18, 2020 12:39 am
languages_spoken: english
Has thanked: 11 times
Been thanked: 12 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by thering1975 »

Will do, currently going to test some magisk modules, got ssh running for now, just looking at the 2 available modules

Also oddly as soon as i disabled USB Debugging, the external ssd works fine in android and boots normally with it connected, not sure why but sorted for now

Sholander
Posts: 155
Joined: Wed Jun 05, 2019 1:02 am
languages_spoken: english
ODROIDs: ODROID N2
Has thanked: 0
Been thanked: 19 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by Sholander »

thering1975 wrote:
Sun Jul 26, 2020 8:24 pm

But yes SPI is back and Android EMMC and CoreElec on SD is working good again, thank you
Glad that you finally got it working, and that your N2 is not faulty...
These users thanked the author Sholander for the post:
thering1975 (Mon Jul 27, 2020 4:29 am)

thering1975
Posts: 78
Joined: Sat Apr 18, 2020 12:39 am
languages_spoken: english
Has thanked: 11 times
Been thanked: 12 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by thering1975 »

Sholander wrote:
Mon Jul 27, 2020 3:59 am
thering1975 wrote:
Sun Jul 26, 2020 8:24 pm

But yes SPI is back and Android EMMC and CoreElec on SD is working good again, thank you
Glad that you finally got it working, and that your N2 is not faulty...
So am i, and thank you.

User avatar
tobetter
Posts: 6050
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 276 times
Been thanked: 755 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter »

odroidn2user wrote:
Sun Jul 26, 2020 6:31 pm
On a slightly different note...

Any chance of maybe adding Microsoft Ergonomic Keyboard support to petitboot? It it ignored currently (dev20191127).

Code: Select all

I: Bus=0003 Vendor=045e Product=00db Version=0111
N: Name="Microsoft Natural® Ergonomic Keyboard 4000"
P: Phys=usb-0000:01:00.0-1.2/input1
S: Sysfs=/devices/platform/scb/fd500000.pcie/pci0000:00/0000:00:00.0/0000:01:00.0/usb1/1-1/1-1.2/1-1.2:1.1/0003:045E:00DB.0002/input/input1
U: Uniq=
H: Handlers=sysrq kbd event1 
B: PROP=0
B: EV=10001f
B: KEY=3f000300ff 0 0 483fff317aff32d bf54444600000000 1 130ff38b17c007 ffff7bfad9715fff ffbeffdfffefffff fffffffffffffffe
B: REL=40
B: ABS=100000000
B: MSC=10
Do you know if the keyboard had been worked with the Petitboot earlier or do you know if this keyboard is working on HK's Ubuntu desktop or Android?
Since I don't have the keyboard, not sure if it can work or not.

odroidn2user
Posts: 336
Joined: Fri Oct 25, 2019 4:14 pm
languages_spoken: english
ODROIDs: N2, C4
Has thanked: 96 times
Been thanked: 88 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by odroidn2user »

tobetter wrote:
Tue Jul 28, 2020 2:41 am
odroidn2user wrote:
Sun Jul 26, 2020 6:31 pm
On a slightly different note...

Any chance of maybe adding Microsoft Ergonomic Keyboard support to petitboot? It it ignored currently (dev20191127).
Do you know if the keyboard had been worked with the Petitboot earlier or do you know if this keyboard is working on HK's Ubuntu desktop or Android?
Since I don't have the keyboard, not sure if it can work or not.
The keyboard was never supported on petitboot as far as I know, though I have not tested very many versions.
The keyboard generally works on the Mate image from HK, if that is what you mean. It is a fairly normal keyboard. It works with kernel 4.9. But appears perhaps it has it's own kernel module, which might not get enabled on petitboot?

mad_ady
Posts: 8567
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, C4, N1, N2, H2, Go, Go Advance
Location: Bucharest, Romania
Has thanked: 578 times
Been thanked: 483 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by mad_ady »

Can you show the output of lsmod?

User avatar
tobetter
Posts: 6050
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 276 times
Been thanked: 755 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter »

mad_ady wrote:
Tue Jul 28, 2020 1:03 pm
Can you show the output of lsmod?
Thanks, this is what I was about to ask as well as the output of 'lsusb -t'. :D
I've checked the driver with VID/PID given in the previous post, but not able to find out the specific driver for it. Maybe the generic keyboard would work, not sure.

gezmond
Posts: 9
Joined: Sat Jul 04, 2020 4:18 am
languages_spoken: english
ODROIDs: N2
Has thanked: 2 times
Been thanked: 1 time
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by gezmond »

New image working perfectly now with reboots, thanks tobetter
These users thanked the author gezmond for the post:
tobetter (Tue Jul 28, 2020 10:47 pm)

User avatar
tobetter
Posts: 6050
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 276 times
Been thanked: 755 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter »

20200806

Update version from 20200721 is uploaded. The firmware can be updated in the Petitboot itself by running the command 'pb-update', or you can download firmware file from spiboot-20200806.img and copy it to your SD card as spiboot.img.

What's improved:
  • Supporting CoreELEC 9.2.4 - new CoreELEC image 9.2.4 will support ODROID-N2PLUS officially and it's been customized to support both ODROID-N2 and ODROID-N2Plus with single image.
  • Microsoft keyboard driver, but not tested if it works since I don't have the keyboard.
  • Hardkernel IR remote support is back.
  • A few minor issues.
Thanks...

EDIT: Sorry, false update file had been uploaded and now it's replaced with new one at 05:35 KST. So if you ever updated already, please do run pb-update in the command line of the Petitboot and check if you can see the hash value 448c836dde45ffb47c8806ef79daaa56 in the display while updating. I would take a break sometime...... :oops:
These users thanked the author tobetter for the post (total 3):
loznic89 (Sat Aug 08, 2020 10:04 pm) • Ampere (Sun Aug 09, 2020 9:15 pm) • xabolcs (Wed Aug 19, 2020 7:52 am)

rpineau
Posts: 67
Joined: Sun Sep 30, 2018 12:19 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 1 time
Been thanked: 6 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by rpineau »

This new Petitboot seems to ignore the DT overlay from config.ini
I have anable what I need and I have a check in rc.local to let me know if any of the overlay I need are enabled or not :

Code: Select all

[   18.544967] rc.local[2882]: Checking if ttyS1 is enabled on GPIO                                    
[   18.568411] rc.local[2882]: /dev/ttyS1 not found                                                    
[   18.596326] rc.local[2882]: Checking if ttyS2 is enabled on GPIO                                    
[   18.608813] rc.local[2882]: /dev/ttyS2 not found                                                    
[   18.652385] rc.local[2882]: Checking if I2C 0 is emabled                                            
[   18.668387] rc.local[2882]: /dev/i2c-0 not found                                                    
[   18.680304] rc.local[2882]: Checking if I2C 1 is emabled                                            
[   18.692244] rc.local[2882]: Checking if SPI is enabled                                              
[   18.708666] rc.local[2882]: /dev/spidev0.0 not found
If I set the boot switch to MMC instead of SPI to boot directly without Petitboot, overlay are loaded properly "

Code: Select all

[   15.634796] rc.local[2853]: Checking if ttyS1 is enabled on GPIO                                    
[   15.648427] rc.local[2853]: Checking if ttyS2 is enabled on GPIO                                    
[   15.660315] rc.local[2853]: Checking if I2C 0 is emabled                                            
[   15.676376] rc.local[2853]: Checking if I2C 1 is emabled                                            
[   15.688404] rc.local[2853]: Checking if SPI is enabled
I also have a script to check and enable them in the dtb file , and I (may be wrongly assumed) the dtb file is loaded from /media/boot/amlogic:

Code: Select all

root@n2dev:/media/boot/amlogic# ~/fix_dtb.sh ./meson64_odroidn2_plus.dtb 
Checking if ttyS1 is enabled on GPIO
Checking if ttyS2 is enabled on GPIO
Checking if I2C_2 is emabled
Checking if I2C_3 is emabled
Checking if SPI is enabled
Checking if SPI_DEV is enabled
So everything seems to be properly enabled and yet when booting via Petitboot 20200806 none of the overlay are taken into account.
For now I'm booting directly to the eMMC but I'd prefer to be able to use Petitboot as I sometime do a network boot to test some network image install.

rpineau
Posts: 67
Joined: Sun Sep 30, 2018 12:19 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 1 time
Been thanked: 6 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by rpineau »

More data.
When booting directly from the eMMC I see the dtb load and overlays :

Code: Select all

reading Image.gz                                                                                       
9279990 bytes read in 258 ms (34.3 MiB/s)                                                              
reading uInitrd                                                                                        
12951204 bytes read in 359 ms (34.4 MiB/s)                                                             
reading amlogic/meson64_odroidn2_plus.dtb                                                              
71087 bytes read in 7 ms (9.7 MiB/s)                                                                   
reading amlogic/overlays/odroidn2/spi0.dtbo                                                            
516 bytes read in 5 ms (100.6 KiB/s)                                                                   
reading amlogic/overlays/odroidn2/i2c0.dtbo                                                            
223 bytes read in 5 ms (43 KiB/s)                                                                      
reading amlogic/overlays/odroidn2/i2c1.dtbo                                                            
223 bytes read in 5 ms (43 KiB/s)                                                                      
reading amlogic/overlays/odroidn2/uart0.dtbo                                                           
528 bytes read in 5 ms (102.5 KiB/s)                                                                   
reading amlogic/overlays/odroidn2/uart1.dtbo                                                           
225 bytes read in 5 ms (43.9 KiB/s)                                                                    
Uncompressed size: 24963584 = 0x17CEA00                                                                
## Loading init Ramdisk from Legacy Image at 03700000 ...                                              
   Image Name:   uInitrd                                                                               
   Image Type:   AArch64 Linux RAMDisk Image (uncompressed)                                            
   Data Size:    12951140 Bytes = 12.4 MiB                                                             
   Load Address: 00000000                                                                              
   Entry Point:  00000000                                                                              
   Verifying Checksum ... OK                                                                           
active_slot is <NULL>                                                                                  
Unknown command 'store' - try 'help'                                                                   
No dtbo patitions found                                                                                
load dtb from 0x1000000 ......                                                                         
## Flattened Device Tree blob at 10000000                                                              
   Booting using the fdt blob at 0x10000000                                                            
No valid dtbo image found                                                                              
   reserving fdt memory region: addr=10000000 size=28000                                               
   Loading Ramdisk to 3cba6000, end 3d7ffe64 ... OK                                                    
   Loading Device Tree to 000000001ffd5000, end 000000001fffffff ... OK                                
                                                                                                       
Starting kernel ...                                            
When booting in SPI move via petitboot, no "reading amlogic/meson64_odroidn2_plus.dtb " or any dtbo
So there is definitely something missing as this was working fine with the previous petitboot. Going back to petitboot 20200721 is an option for now as this seem to be able to boot my N2+ eMMC with all the overlay loaded.

User avatar
tobetter
Posts: 6050
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 276 times
Been thanked: 755 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter »

@rpineau, Sorry...it looks like the false Petitboot update file has been uploaded. I've uploaded the original file, so please do run pb-update again and check if you can see the hash value 448c836dde45ffb47c8806ef79daaa56 while updating on the screen.
These users thanked the author tobetter for the post:
CoolGames (Sun Aug 09, 2020 6:03 am)

rpineau
Posts: 67
Joined: Sun Sep 30, 2018 12:19 pm
languages_spoken: english
ODROIDs: XU4
Has thanked: 1 time
Been thanked: 6 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by rpineau »

updated and it did show the new hash.
Problem seems to be fixed and all overlay are present after booting via petitboot.
Thanks for the quick fix.
These users thanked the author rpineau for the post:
tobetter (Sat Aug 08, 2020 11:34 am)

loznic89
Posts: 25
Joined: Tue May 07, 2019 8:01 am
languages_spoken: spanish
ODROIDs: Odroid N2
Has thanked: 16 times
Been thanked: 5 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by loznic89 »

tobetter wrote:
Sat Aug 08, 2020 1:38 am
20200806

Update version from 20200721 is uploaded. The firmware can be updated in the Petitboot itself by running the command 'pb-update', or you can download firmware file from spiboot-20200806.img and copy it to your SD card as spiboot.img.

What's improved:
  • Supporting CoreELEC 9.2.4 - new CoreELEC image 9.2.4 will support ODROID-N2PLUS officially and it's been customized to support both ODROID-N2 and ODROID-N2Plus with single image.
  • Microsoft keyboard driver, but not tested if it works since I don't have the keyboard.
  • Hardkernel IR remote support is back.
  • A few minor issues.
Thanks...

EDIT: Sorry, false update file had been uploaded and now it's replaced with new one at 05:35 KST. So if you ever updated already, please do run pb-update in the command line of the Petitboot and check if you can see the hash value 448c836dde45ffb47c8806ef79daaa56 in the display while updating. I would take a break sometime...... :oops:
THANKS tobetter, IR HK working and petitboot recognize now uSD installed CE 9.2.4
These users thanked the author loznic89 for the post:
tobetter (Sat Aug 08, 2020 10:45 pm)

Rmiino
Posts: 23
Joined: Fri May 17, 2019 3:49 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 10 times
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by Rmiino »

My N2+ Boot Loop HK Logo and no SPI menu. When switch to SPI boot mode after update SPI . But switch to EMMC Boot mode can boot any OS. I tried update SPI any version and tried recover spi mode (https://wiki.odroid.com/odroid-n2/os_images/petitboot) from mSD but can't update and not working. My TV is stuck at black screen.
How to get back SPI boot ?
Last edited by Rmiino on Tue Aug 11, 2020 4:01 pm, edited 1 time in total.

kostaman
Posts: 10
Joined: Mon Aug 05, 2019 11:05 am
languages_spoken: english
ODROIDs: Odroid N2+
Has thanked: 2 times
Been thanked: 6 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by kostaman »

tobetter wrote:
Sat Aug 08, 2020 1:38 am
20200806

Update version from 20200721 is uploaded. The firmware can be updated in the Petitboot itself by running the command 'pb-update',

What's improved:
  • Supporting CoreELEC 9.2.4 - new CoreELEC image 9.2.4 will support ODROID-N2PLUS officially and it's been customized to support both ODROID-N2 and ODROID-N2Plus with single image.
Worked with pb-update method.

CoreELEC Odroid N2 and N2+ SAME IMAGE 9.2.4 stable now works for both hardware versions.
These users thanked the author kostaman for the post:
odroid (Mon Aug 10, 2020 12:08 pm)

Ampere
Posts: 12
Joined: Tue Jul 23, 2019 6:20 pm
languages_spoken: dutch, french,english
ODROIDs: odroid n2 plus / odroid c2
Location: Belgium
Has thanked: 3 times
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by Ampere »

I'm having these weird issues with usb on my n2+, i have to replug my keyboard often and i'm having boot problems from external disks.
Sd cards and usb ssd's dissapear in petitboot, i have coreelec on mmc and ubuntu 20 wayland on sdcard, after reboot my sdcard is sometimes gone. After power cycle everything is ok.
rescan devices does not help
How do i debug this ?

User avatar
tobetter
Posts: 6050
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 276 times
Been thanked: 755 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter »

Ampere wrote:
Thu Aug 13, 2020 10:39 pm
I'm having these weird issues with usb on my n2+, i have to replug my keyboard often and i'm having boot problems from external disks.
Sd cards and usb ssd's dissapear in petitboot, i have coreelec on mmc and ubuntu 20 wayland on sdcard, after reboot my sdcard is sometimes gone. After power cycle everything is ok.
rescan devices does not help
How do i debug this ?
There is a bug with mainline kernel 5.7 for ODROID-N2Plus that SD card won't come after reboot, I have no chance to fix it properly. I suggest swapping the OS between eMMC and SD card, it won't make the same issue. Have you tried to boot from SSD without connecting USB keyboard? I am wondering if SSD does not show the boot menu entry or the disk itself is not appear as /dev/sda or /dev/sdb.

superpowter77
Posts: 259
Joined: Mon Sep 09, 2019 9:14 pm
languages_spoken: english,french,spanish
ODROIDs: Odroid-N2+ 4Gb,N2 4Gb(2),C4
Has thanked: 48 times
Been thanked: 20 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by superpowter77 »

tobetter wrote:
Fri Aug 14, 2020 12:19 am
Ampere wrote:
Thu Aug 13, 2020 10:39 pm
I'm having these weird issues with usb on my n2+, i have to replug my keyboard often and i'm having boot problems from external disks.
Sd cards and usb ssd's dissapear in petitboot, i have coreelec on mmc and ubuntu 20 wayland on sdcard, after reboot my sdcard is sometimes gone. After power cycle everything is ok.
rescan devices does not help
How do i debug this ?
There is a bug with mainline kernel 5.7 for ODROID-N2Plus that SD card won't come after reboot, I have no chance to fix it properly. I suggest swapping the OS between eMMC and SD card, it won't make the same issue. Have you tried to boot from SSD without connecting USB keyboard? I am wondering if SSD does not show the boot menu entry or the disk itself is not appear as /dev/sda or /dev/sdb.
It happens with regular N2 as well using latest Petiboot. I didn't report it sooner because I was waiting for someone else to bring that up. Currently my regular N2's are booting from eMMC to Focal 20.04 /Gnome/Wayland w/5.7.0-odroid-arm64 and CoreElec has 9.2.4.1 for microSD.
My N2's have external USB3 SSD drives(one each) both formatted with Ext4 filesystem.

User avatar
tobetter
Posts: 6050
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 276 times
Been thanked: 755 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter »

superpowter77 wrote:
Fri Aug 14, 2020 1:57 am
tobetter wrote:
Fri Aug 14, 2020 12:19 am
Ampere wrote:
Thu Aug 13, 2020 10:39 pm
I'm having these weird issues with usb on my n2+, i have to replug my keyboard often and i'm having boot problems from external disks.
Sd cards and usb ssd's dissapear in petitboot, i have coreelec on mmc and ubuntu 20 wayland on sdcard, after reboot my sdcard is sometimes gone. After power cycle everything is ok.
rescan devices does not help
How do i debug this ?
There is a bug with mainline kernel 5.7 for ODROID-N2Plus that SD card won't come after reboot, I have no chance to fix it properly. I suggest swapping the OS between eMMC and SD card, it won't make the same issue. Have you tried to boot from SSD without connecting USB keyboard? I am wondering if SSD does not show the boot menu entry or the disk itself is not appear as /dev/sda or /dev/sdb.
It happens with regular N2 as well using latest Petiboot. I didn't report it sooner because I was waiting for someone else to bring that up. Currently my regular N2's are booting from eMMC to Focal 20.04 /Gnome/Wayland w/5.7.0-odroid-arm64 and CoreElec has 9.2.4.1 for microSD.
My N2's have external USB3 SSD drives(one each) both formatted with Ext4 filesystem.
Are you meaning the USB issue or uSD, or both?

superpowter77
Posts: 259
Joined: Mon Sep 09, 2019 9:14 pm
languages_spoken: english,french,spanish
ODROIDs: Odroid-N2+ 4Gb,N2 4Gb(2),C4
Has thanked: 48 times
Been thanked: 20 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by superpowter77 »

tobetter wrote:
Fri Aug 14, 2020 2:06 am
superpowter77 wrote:
Fri Aug 14, 2020 1:57 am
tobetter wrote:
Fri Aug 14, 2020 12:19 am
Ampere wrote:
Thu Aug 13, 2020 10:39 pm
I'm having these weird issues with usb on my n2+, i have to replug my keyboard often and i'm having boot problems from external disks.
Sd cards and usb ssd's dissapear in petitboot, i have coreelec on mmc and ubuntu 20 wayland on sdcard, after reboot my sdcard is sometimes gone. After power cycle everything is ok.
rescan devices does not help
How do i debug this ?
There is a bug with mainline kernel 5.7 for ODROID-N2Plus that SD card won't come after reboot, I have no chance to fix it properly. I suggest swapping the OS between eMMC and SD card, it won't make the same issue. Have you tried to boot from SSD without connecting USB keyboard? I am wondering if SSD does not show the boot menu entry or the disk itself is not appear as /dev/sda or /dev/sdb.
It happens with regular N2 as well using latest Petiboot. I didn't report it sooner because I was waiting for someone else to bring that up. Currently my regular N2's are booting from eMMC to Focal 20.04 /Gnome/Wayland w/5.7.0-odroid-arm64 and CoreElec has 9.2.4.1 for microSD.
My N2's have external USB3 SSD drives(one each) both formatted with Ext4 filesystem.
Are you meaning the USB issue or uSD, or both?
only uSD. I'm no longer booting from USB3 on my N2's.

User avatar
tobetter
Posts: 6050
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 276 times
Been thanked: 755 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter »

superpowter77 wrote:
Fri Aug 14, 2020 2:10 am
tobetter wrote:
Fri Aug 14, 2020 2:06 am
superpowter77 wrote:
Fri Aug 14, 2020 1:57 am
tobetter wrote:
Fri Aug 14, 2020 12:19 am
Ampere wrote:
Thu Aug 13, 2020 10:39 pm
I'm having these weird issues with usb on my n2+, i have to replug my keyboard often and i'm having boot problems from external disks.
Sd cards and usb ssd's dissapear in petitboot, i have coreelec on mmc and ubuntu 20 wayland on sdcard, after reboot my sdcard is sometimes gone. After power cycle everything is ok.
rescan devices does not help
How do i debug this ?
There is a bug with mainline kernel 5.7 for ODROID-N2Plus that SD card won't come after reboot, I have no chance to fix it properly. I suggest swapping the OS between eMMC and SD card, it won't make the same issue. Have you tried to boot from SSD without connecting USB keyboard? I am wondering if SSD does not show the boot menu entry or the disk itself is not appear as /dev/sda or /dev/sdb.
It happens with regular N2 as well using latest Petiboot. I didn't report it sooner because I was waiting for someone else to bring that up. Currently my regular N2's are booting from eMMC to Focal 20.04 /Gnome/Wayland w/5.7.0-odroid-arm64 and CoreElec has 9.2.4.1 for microSD.
My N2's have external USB3 SSD drives(one each) both formatted with Ext4 filesystem.
Are you meaning the USB issue or uSD, or both?
only uSD. I'm no longer booting from USB3 on my N2's.
Ok, probably uSD for N2 would not work after rebooting with N2 as well. That's know issue, the problem is not fixed yet.
What's the problem why you cannot boot from USB3 now? Still having picky USB-to-SATA bridge issue?

superpowter77
Posts: 259
Joined: Mon Sep 09, 2019 9:14 pm
languages_spoken: english,french,spanish
ODROIDs: Odroid-N2+ 4Gb,N2 4Gb(2),C4
Has thanked: 48 times
Been thanked: 20 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by superpowter77 »

tobetter wrote:
Fri Aug 14, 2020 2:12 am
superpowter77 wrote:
Fri Aug 14, 2020 2:10 am
tobetter wrote:
Fri Aug 14, 2020 2:06 am
superpowter77 wrote:
Fri Aug 14, 2020 1:57 am
tobetter wrote:
Fri Aug 14, 2020 12:19 am
Ampere wrote:
Thu Aug 13, 2020 10:39 pm
I'm having these weird issues with usb on my n2+, i have to replug my keyboard often and i'm having boot problems from external disks.
Sd cards and usb ssd's dissapear in petitboot, i have coreelec on mmc and ubuntu 20 wayland on sdcard, after reboot my sdcard is sometimes gone. After power cycle everything is ok.
rescan devices does not help
How do i debug this ?
There is a bug with mainline kernel 5.7 for ODROID-N2Plus that SD card won't come after reboot, I have no chance to fix it properly. I suggest swapping the OS between eMMC and SD card, it won't make the same issue. Have you tried to boot from SSD without connecting USB keyboard? I am wondering if SSD does not show the boot menu entry or the disk itself is not appear as /dev/sda or /dev/sdb.
It happens with regular N2 as well using latest Petiboot. I didn't report it sooner because I was waiting for someone else to bring that up. Currently my regular N2's are booting from eMMC to Focal 20.04 /Gnome/Wayland w/5.7.0-odroid-arm64 and CoreElec has 9.2.4.1 for microSD.
My N2's have external USB3 SSD drives(one each) both formatted with Ext4 filesystem.
Are you meaning the USB issue or uSD, or both?
only uSD. I'm no longer booting from USB3 on my N2's.
Ok, probably uSD for N2 would not work after rebooting with N2 as well. That's know issue, the problem is not fixed yet.
What's the problem why you cannot boot from USB3 now? Still having picky USB-to-SATA bridge issue?
Yes, still having a picky USB-to-SATA bridge issue. That forced to order a bunch of eMMC cards. Problem is I only have 2 working USB3-to-SATA adapters and 4 Odroids. I have thirteen(13) USB3-to-SATA adapters don't work with 5.7 kernel. All 15 USB3-to-SATA adapters I have work perfectly fine with official 4.9 kernel on Ubuntu 18.04.4 and 20.04.
Last edited by superpowter77 on Fri Aug 14, 2020 4:19 am, edited 1 time in total.

User avatar
tobetter
Posts: 6050
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 276 times
Been thanked: 755 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter »

superpowter77 wrote:
Fri Aug 14, 2020 2:22 am
Yes, still having a picky USB-to-SATA bridge issue. That forced to order a bunch of eMMC cards. Problem I only have 2 working USB3-to-SATA adapters and 4 Odroids. I have thirteen(13) USB3-to-SATA adapters don't work with 5.7 kernel. All 15 USB3-to-SATA adapters I have work perfectly fine with official 4.9 kernel on Ubuntu 18.04.4 and 20.04.
That's odd, can you please let me have the model of your 13 adapters?

superpowter77
Posts: 259
Joined: Mon Sep 09, 2019 9:14 pm
languages_spoken: english,french,spanish
ODROIDs: Odroid-N2+ 4Gb,N2 4Gb(2),C4
Has thanked: 48 times
Been thanked: 20 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by superpowter77 »

tobetter wrote:
Fri Aug 14, 2020 2:24 am
superpowter77 wrote:
Fri Aug 14, 2020 2:22 am
Yes, still having a picky USB-to-SATA bridge issue. That forced to order a bunch of eMMC cards. Problem I only have 2 working USB3-to-SATA adapters and 4 Odroids. I have thirteen(13) USB3-to-SATA adapters don't work with 5.7 kernel. All 15 USB3-to-SATA adapters I have work perfectly fine with official 4.9 kernel on Ubuntu 18.04.4 and 20.04.
That's odd, can you please let me have the model of your 13 adapters?
ASMedia ASM1153E and JMicron JMS578 chips from different manufacturers as Sabrent, Orico, Eluteng, Elegiant & Ugreen.
Also, my Samsung T5 and Sandisk Extreme Portable external SSD drives don't work either with 5.7 kernels.

superpowter77
Posts: 259
Joined: Mon Sep 09, 2019 9:14 pm
languages_spoken: english,french,spanish
ODROIDs: Odroid-N2+ 4Gb,N2 4Gb(2),C4
Has thanked: 48 times
Been thanked: 20 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by superpowter77 »

tobetter wrote:
Fri Aug 14, 2020 2:24 am
superpowter77 wrote:
Fri Aug 14, 2020 2:22 am
Yes, still having a picky USB-to-SATA bridge issue. That forced to order a bunch of eMMC cards. Problem I only have 2 working USB3-to-SATA adapters and 4 Odroids. I have thirteen(13) USB3-to-SATA adapters don't work with 5.7 kernel. All 15 USB3-to-SATA adapters I have work perfectly fine with official 4.9 kernel on Ubuntu 18.04.4 and 20.04.
That's odd, can you please let me have the model of your 13 adapters?
https://www.amazon.ca/gp/product/B011M8 ... UTF8&psc=1
https://www.amazon.ca/gp/product/B00TH1 ... UTF8&psc=1
https://www.amazon.ca/gp/product/B07QSF ... UTF8&psc=1
https://www.amazon.ca/gp/product/B07Y82 ... UTF8&psc=1
https://www.amazon.ca/gp/product/B01LY9 ... UTF8&psc=1

My External SSD drives that don't work with 5.7/5.8 kernels:

https://www.amazon.ca/Samsung-T5-Portab ... ics&sr=1-5
https://www.amazon.ca/SanDisk-Extreme-5 ... 176&sr=1-3
These users thanked the author superpowter77 for the post:
tobetter (Fri Aug 14, 2020 2:44 am)

yuhmuhduh
Posts: 5
Joined: Fri Aug 14, 2020 2:42 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by yuhmuhduh »

I'm still unable to get CoreELEC (on uSD) or the Lineage Android v16 (on eMMC) to boot via SPI when loading through petitboot. I've tried it over the past few months on several versions. I used the pb-update from the July version to the latest last night (which worked great) and it's the same thing. For CoreELEC, it'll just load a black screen. I can see the heartbeat blue light going after loading, but nothing on the screen at all. Any ideas?

Like another poster mentioned in this thread, would be easiest if MMC boot defaulted to uSD instead of eMMC...would be simple just to take out and put in the uSD when wanting to boot a different OS, but I think that's another discussion.

4GB N2, CoreELEC 9.2.3 on uSD, LineageOS 16.0 on eMMC. Latest version of petitboot 20200806. Using a 1080p TV.

Ampere
Posts: 12
Joined: Tue Jul 23, 2019 6:20 pm
languages_spoken: dutch, french,english
ODROIDs: odroid n2 plus / odroid c2
Location: Belgium
Has thanked: 3 times
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by Ampere »

tobetter wrote:
Fri Aug 14, 2020 12:19 am
Ampere wrote:
Thu Aug 13, 2020 10:39 pm
I'm having these weird issues with usb on my n2+, i have to replug my keyboard often and i'm having boot problems from external disks.
Sd cards and usb ssd's dissapear in petitboot, i have coreelec on mmc and ubuntu 20 wayland on sdcard, after reboot my sdcard is sometimes gone. After power cycle everything is ok.
rescan devices does not help
How do i debug this ?
There is a bug with mainline kernel 5.7 for ODROID-N2Plus that SD card won't come after reboot, I have no chance to fix it properly. I suggest swapping the OS between eMMC and SD card, it won't make the same issue. Have you tried to boot from SSD without connecting USB keyboard? I am wondering if SSD does not show the boot menu entry or the disk itself is not appear as /dev/sda or /dev/sdb.
I've tried now without keyboard (and mouse). No difference. Petitboot detects the external ssd after 30+ seconds, gives the command to boot and then nothing, black screen.
Same with only mmc an sd, boots once from sd after reboot only mmc is detected. After power cycle everything is back.

User avatar
tobetter
Posts: 6050
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 276 times
Been thanked: 755 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter »

Ampere wrote:
Fri Aug 14, 2020 3:20 am
tobetter wrote:
Fri Aug 14, 2020 12:19 am
Ampere wrote:
Thu Aug 13, 2020 10:39 pm
I'm having these weird issues with usb on my n2+, i have to replug my keyboard often and i'm having boot problems from external disks.
Sd cards and usb ssd's dissapear in petitboot, i have coreelec on mmc and ubuntu 20 wayland on sdcard, after reboot my sdcard is sometimes gone. After power cycle everything is ok.
rescan devices does not help
How do i debug this ?
There is a bug with mainline kernel 5.7 for ODROID-N2Plus that SD card won't come after reboot, I have no chance to fix it properly. I suggest swapping the OS between eMMC and SD card, it won't make the same issue. Have you tried to boot from SSD without connecting USB keyboard? I am wondering if SSD does not show the boot menu entry or the disk itself is not appear as /dev/sda or /dev/sdb.
I've tried now without keyboard (and mouse). No difference. Petitboot detects the external ssd after 30+ seconds, gives the command to boot and then nothing, black screen.
What's the vendor of the SATA controller and your SSD? How SSD is connected to which USB port? And what's the size of your SSD? It's weird that it takes 30 seconds to have SSD in the Petitboot. Which OS and file systems are in the SSD?
Same with only mmc an sd, boots once from sd after reboot only mmc is detected. After power cycle everything is back.
I think it's easier to understand the problem if you record the issue with your mobile and share it.

Ampere
Posts: 12
Joined: Tue Jul 23, 2019 6:20 pm
languages_spoken: dutch, french,english
ODROIDs: odroid n2 plus / odroid c2
Location: Belgium
Has thanked: 3 times
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by Ampere »

tobetter wrote:
Fri Aug 14, 2020 3:29 am
Ampere wrote:
Fri Aug 14, 2020 3:20 am
tobetter wrote:
Fri Aug 14, 2020 12:19 am
Ampere wrote:
Thu Aug 13, 2020 10:39 pm
I'm having these weird issues with usb on my n2+, i have to replug my keyboard often and i'm having boot problems from external disks.
Sd cards and usb ssd's dissapear in petitboot, i have coreelec on mmc and ubuntu 20 wayland on sdcard, after reboot my sdcard is sometimes gone. After power cycle everything is ok.
rescan devices does not help
How do i debug this ?
There is a bug with mainline kernel 5.7 for ODROID-N2Plus that SD card won't come after reboot, I have no chance to fix it properly. I suggest swapping the OS between eMMC and SD card, it won't make the same issue. Have you tried to boot from SSD without connecting USB keyboard? I am wondering if SSD does not show the boot menu entry or the disk itself is not appear as /dev/sda or /dev/sdb.
I've tried now without keyboard (and mouse). No difference. Petitboot detects the external ssd after 30+ seconds, gives the command to boot and then nothing, black screen.
What's the vendor of the SATA controller and your SSD? How SSD is connected to which USB port? And what's the size of your SSD? It's weird that it takes 30 seconds to have SSD in the Petitboot. Which OS and file systems are in the SSD?
Same with only mmc an sd, boots once from sd after reboot only mmc is detected. After power cycle everything is back.
I think it's easier to understand the problem if you record the issue with your mobile and share it.
Okay i will record the problem
where do i upload it ?
It is an old Lacie Porche design external ssd connected to one of the usb3 ports

User avatar
tobetter
Posts: 6050
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 276 times
Been thanked: 755 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter »

Ampere wrote:
Fri Aug 14, 2020 4:47 am
Okay i will record the problem
where do i upload it ?
It is an old Lacie Porche design external ssd connected to one of the usb3 ports
You can upload it anywhere you prefer to. It sounds luxury..."Lacie Porche"!!?

Ampere
Posts: 12
Joined: Tue Jul 23, 2019 6:20 pm
languages_spoken: dutch, french,english
ODROIDs: odroid n2 plus / odroid c2
Location: Belgium
Has thanked: 3 times
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by Ampere »

tobetter wrote:
Fri Aug 14, 2020 4:50 am
Ampere wrote:
Fri Aug 14, 2020 4:47 am
Okay i will record the problem
where do i upload it ?
It is an old Lacie Porche design external ssd connected to one of the usb3 ports
You can upload it anywhere you prefer to. It sounds luxury..."Lacie Porche"!!?
Jah a present from the wife (https://www.alphr.com/features/380806/b ... s-of-2013/)
https://1drv.ms/v/s!AlrLVPXsPKw1gvs_XH_ ... Q?e=eErjtZ
https://1drv.ms/v/s!AlrLVPXsPKw1gvtAy1r ... Q?e=JJOUBJ
You should be able to download them
One from lacie external not booting and one from ubunto gone after reboot

User avatar
tobetter
Posts: 6050
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 276 times
Been thanked: 755 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter »

Ampere wrote:
Fri Aug 14, 2020 5:22 am
tobetter wrote:
Fri Aug 14, 2020 4:50 am
Ampere wrote:
Fri Aug 14, 2020 4:47 am
Okay i will record the problem
where do i upload it ?
It is an old Lacie Porche design external ssd connected to one of the usb3 ports
You can upload it anywhere you prefer to. It sounds luxury..."Lacie Porche"!!?
Jah a present from the wife (https://www.alphr.com/features/380806/b ... s-of-2013/)
https://1drv.ms/v/s!AlrLVPXsPKw1gvs_XH_ ... Q?e=eErjtZ
https://1drv.ms/v/s!AlrLVPXsPKw1gvtAy1r ... Q?e=JJOUBJ
You should be able to download them
One from lacie external not booting and one from ubunto gone after reboot
Thanks for the video...
Let me rephrase the problem from the video.
1. I believe the Ubuntu from your external disk has been booted but the display does not work for some reason. I hope you can try to ping to ODROID-N2 if you know IP address of it or can do ssh to see if Linux kernel is running or drivers are loaded.
2. This is the known issue that I mentioned in the previous post that MMC does not work after rebooting. Temporary you can install CoreELEC to SD card and Ubuntu to eMMC, as you may guess this will make CoreELEC disappear. Alternatively, you can insert SD card to USB card reader and attach to USB host instead of SD card slot, it will work. This way will help to figure out why external storage does not show its face.

Do you have UART-to-SERIAL debugging board?

Ampere
Posts: 12
Joined: Tue Jul 23, 2019 6:20 pm
languages_spoken: dutch, french,english
ODROIDs: odroid n2 plus / odroid c2
Location: Belgium
Has thanked: 3 times
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by Ampere »

[/quote]

Thanks for the video...
Let me rephrase the problem from the video.
1. I believe the Ubuntu from your external disk has been booted but the display does not work for some reason. I hope you can try to ping to ODROID-N2 if you know IP address of it or can do ssh to see if Linux kernel is running or drivers are loaded.
2. This is the known issue that I mentioned in the previous post that MMC does not work after rebooting. Temporary you can install CoreELEC to SD card and Ubuntu to eMMC, as you may guess this will make CoreELEC disappear. Alternatively, you can insert SD card to USB card reader and attach to USB host instead of SD card slot, it will work. This way will help to figure out why external storage does not show its face.

Do you have UART-to-SERIAL debugging board?
[/quote]
I do not have the debugging board.
1. It works normally sometimes. I do not think the drive boots, the activity led from the drive sits idle.
2. Problem is solved with power cycling, i shutdown ubuntu now. n2plus runs coreelec mostly with network storage and a remote so no usb use there.
Losing the keyboard is annoying but sticking it in another port solves that

yuhmuhduh
Posts: 5
Joined: Fri Aug 14, 2020 2:42 am
languages_spoken: english
Has thanked: 1 time
Been thanked: 1 time
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by yuhmuhduh »

yuhmuhduh wrote:
Fri Aug 14, 2020 2:50 am
I'm still unable to get CoreELEC (on uSD) or the Lineage Android v16 (on eMMC) to boot via SPI when loading through petitboot. I've tried it over the past few months on several versions. I used the pb-update from the July version to the latest last night (which worked great) and it's the same thing. For CoreELEC, it'll just load a black screen. I can see the heartbeat blue light going after loading, but nothing on the screen at all. Any ideas?

Like another poster mentioned in this thread, would be easiest if MMC boot defaulted to uSD instead of eMMC...would be simple just to take out and put in the uSD when wanting to boot a different OS, but I think that's another discussion.

4GB N2, CoreELEC 9.2.3 on uSD, LineageOS 16.0 on eMMC. Latest version of petitboot 20200806. Using a 1080p TV.
Any pointers on this one?

User avatar
Newbie_from_NJ
Posts: 12
Joined: Fri Dec 27, 2019 2:33 am
languages_spoken: english
ODROIDs: ODROID-N2
Has thanked: 8 times
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by Newbie_from_NJ »

Hi guys,

I haven't been here is months and going to update Petitboot to latest version. Last I was here, we had confirmed issues using Samsung Evo uSD cards? Has this been resolved? Also, what androiv TV version do you recommend most? I will be running atv from uSD as CoreELEC is on eMMC. Thanks.
4GB ODROID N2 64GB eMMC, Asus i3 Chromebox 128GB, Nvidia Shield, Wetek Hub, AFTV
CoreELEC Nightly, LibreELEC 9.2, Kodi 18.5 
LG 65" OLED C9 and Onkyo TX-NR636 Atmos 7.2

User avatar
tobetter
Posts: 6050
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 276 times
Been thanked: 755 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter »

Newbie_from_NJ wrote:
Sat Aug 15, 2020 10:51 am
Hi guys,

I haven't been here is months and going to update Petitboot to latest version. Last I was here, we had confirmed issues using Samsung Evo uSD cards? Has this been resolved? Also, what androiv TV version do you recommend most? I will be running atv from uSD as CoreELEC is on eMMC. Thanks.
Samsung EVO SD card problem is not reported anymore and you will need to update the Petitboot if you like to run the latest CoreELEC 9.2.4 for sure. If you want to manage two different OS Android-based and CoreELEC, I would suggest installing CoreELEC to SD card and ATV to eMMC for the best performance and stability. CoreELEC works very well with SD card but Android is not. FYI, CoreELEC also can work from a USB stick if you use the Petitboot.
These users thanked the author tobetter for the post:
Newbie_from_NJ (Sun Aug 16, 2020 3:17 am)

specs
Posts: 58
Joined: Sun Nov 24, 2019 12:14 pm
languages_spoken: english
ODROIDs: odroid n2
odroid c4
Has thanked: 15 times
Been thanked: 5 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by specs »

As a followup from the netboot installer issues I have some logfiles over the serial console with the same N2 and 2 monitors.

Installation procedure:
- start (petitboot/recent)
- commandline
- netboot_default
- Ubuntu LTS 20.04

The "preinstalled image" is the image I installed earlier this week using monitor A on a 32 GB emmc.

Monitor A works.
Monitor B does not.

To be more exact: with monitor A I get a picture, monitor B stays black.
When starting with the pre-installed image the N2 ends with red led (blue led off).
Attachments
start_installed_monitorB.log
bootup with pre-installed image with monitor B
(22.01 KiB) Downloaded 9 times
start_install_monitorB.log
install with netboot with monitor B until end
(22.04 KiB) Downloaded 10 times
start_install_monitorA.log
install with netboot with monitor A until first interaction
(22.85 KiB) Downloaded 11 times
Last edited by specs on Sat Aug 15, 2020 5:23 pm, edited 2 times in total.

User avatar
tobetter
Posts: 6050
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 276 times
Been thanked: 755 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter »

specs wrote:
Sat Aug 15, 2020 4:55 pm
As a followup from the netboot installer issues I have some logfiles over the serial console with the same N2 and 2 monitors.

Installation procedure:
- start (petitboot/recent)
- commandline
- netboot_default
- Ubuntu LTS 20.04

The "preinstalled image" is the image I installed earlier this week using monitor A on a 32 GB emmc.

Monitor A works.
Monitor B does not.
Thanks a lot, I will look into it.

User avatar
Newbie_from_NJ
Posts: 12
Joined: Fri Dec 27, 2019 2:33 am
languages_spoken: english
ODROIDs: ODROID-N2
Has thanked: 8 times
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by Newbie_from_NJ »

tobetter wrote:
Sat Aug 15, 2020 2:21 pm
Newbie_from_NJ wrote:
Sat Aug 15, 2020 10:51 am
Hi guys,

I haven't been here is months and going to update Petitboot to latest version. Last I was here, we had confirmed issues using Samsung Evo uSD cards? Has this been resolved? Also, what androiv TV version do you recommend most? I will be running atv from uSD as CoreELEC is on eMMC. Thanks.
Samsung EVO SD card problem is not reported anymore and you will need to update the Petitboot if you like to run the latest CoreELEC 9.2.4 for sure. If you want to manage two different OS Android-based and CoreELEC, I would suggest installing CoreELEC to SD card and ATV to eMMC for the best performance and stability. CoreELEC works very well with SD card but Android is not. FYI, CoreELEC also can work from a USB stick if you use the Petitboot.

I downloaded Petitboot (dev.20200815) from Wiki link below:
https://wiki.odroid.com/odroid-n2/os_im ... ev20200815
Flashed it via Etcher on uSD.
inserted uSD on N-2.
Removed eMMC.
Put SPI button on Right
Powered N-2 and Petitboot (dev.20200813) was installed.
Question #1: Is the version number difference a Typo? Download file reads 0815.

Inserted both cards, eMMC (CE 9.2.4) and uSD (ATV 9 x64) in N-2.
Powered on N-2.

SPI button on Right, Hardkernel Logo appears, then Android 9 (LineageOS 16) on uSD boots by default.
SPI button on Left, Hardkernel logo appears, Petit dev.20200813 boots and I can make my OS selection. Both can bootup properly. If I don't choose an OS, ATV 9 boots by default.
Question #2: Can I change this to make eMMC boot by default instead?

Question #3: You recommend I install ATV 10 x64 instead (LineageOS 17.1)? Is it too new, any problems or is all well with it?

P.S. - You're right. ATV on uSD has horrible performance, but my daily driver is CE on eMMC. I can live with this performance as I rarely launch android. I only want to have the option, in case I need it.
4GB ODROID N2 64GB eMMC, Asus i3 Chromebox 128GB, Nvidia Shield, Wetek Hub, AFTV
CoreELEC Nightly, LibreELEC 9.2, Kodi 18.5 
LG 65" OLED C9 and Onkyo TX-NR636 Atmos 7.2

User avatar
tobetter
Posts: 6050
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: Many
Location: Paju, South Korea
Has thanked: 276 times
Been thanked: 755 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Post by tobetter »

Newbie_from_NJ wrote:
Sun Aug 16, 2020 3:17 am
tobetter wrote:
Sat Aug 15, 2020 2:21 pm
Newbie_from_NJ wrote:
Sat Aug 15, 2020 10:51 am
Hi guys,

I haven't been here is months and going to update Petitboot to latest version. Last I was here, we had confirmed issues using Samsung Evo uSD cards? Has this been resolved? Also, what androiv TV version do you recommend most? I will be running atv from uSD as CoreELEC is on eMMC. Thanks.
Samsung EVO SD card problem is not reported anymore and you will need to update the Petitboot if you like to run the latest CoreELEC 9.2.4 for sure. If you want to manage two different OS Android-based and CoreELEC, I would suggest installing CoreELEC to SD card and ATV to eMMC for the best performance and stability. CoreELEC works very well with SD card but Android is not. FYI, CoreELEC also can work from a USB stick if you use the Petitboot.

I downloaded Petitboot (dev.20200815) from Wiki link below:
https://wiki.odroid.com/odroid-n2/os_im ... ev20200815
Flashed it via Etcher on uSD.
inserted uSD on N-2.
Removed eMMC.
Put SPI button on Right
Powered N-2 and Petitboot (dev.20200813) was installed.
Question #1: Is the version number difference a Typo? Download file reads 0815.
The image 20200815 is the temporary image that I am working on for the next release, the image is uploaded to help another user who failed to update SPI flash and no longer boot from it. If you run pb-update in the Petitboot, you will have the latest update 20200806, but there is no big change.
viewtopic.php?f=181&t=39946
Inserted both cards, eMMC (CE 9.2.4) and uSD (ATV 9 x64) in N-2.
Powered on N-2.

SPI button on Right, Hardkernel Logo appears, then Android 9 (LineageOS 16) on uSD boots by default.
SPI button on Left, Hardkernel logo appears, Petit dev.20200813 boots and I can make my OS selection. Both can bootup properly. If I don't choose an OS, ATV 9 boots by default.
Question #2: Can I change this to make eMMC boot by default instead?
Please go for the System Configuration in the Petitboot menu and make the boot order in it after attaching the boot storage what you have. After changing and when you back to main menu, the configuration will be stored and affected on the next boot. It might be a bit confusing to change the boot order, sorry for no guide about this, but you will be familiar with after a couple of rebooting.
Question #3: You recommend I install ATV 10 x64 instead (LineageOS 17.1)? Is it too new, any problems or is all well with it?

P.S. - You're right. ATV on uSD has horrible performance, but my daily driver is CE on eMMC. I can live with this performance as I rarely launch android. I only want to have the option, in case I need it.
As you know, eMMC is expensive storage but offers very satisfying performance, it's really worth to pay. But CoreELEC is really good to run with low performance storage and they OS image would not easily defected even when unexpected power cut happens.
These users thanked the author tobetter for the post:
Newbie_from_NJ (Mon Aug 17, 2020 11:50 am)

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 0 guests