Petitboot, yet another bootloader based on KEXEC

User avatar
mad_ady
Posts: 6646
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 188 times
Been thanked: 143 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Sun Sep 22, 2019 5:23 am

Ok, what is the exact armbian image you're using?

dapimp011
Posts: 9
Joined: Thu Aug 15, 2019 11:28 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by dapimp011 » Sun Sep 22, 2019 5:33 am

mad_ady wrote:
Sun Sep 22, 2019 5:23 am
Ok, what is the exact armbian image you're using?
Armbian_5.95_Odroidn2_Ubuntu_bionic_default_4.9.190_desktop

felipejfc
Posts: 3
Joined: Tue Sep 17, 2019 11:04 pm
languages_spoken: english
ODROIDs: n2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by felipejfc » Sun Sep 22, 2019 6:25 am

felipejfc wrote:
Tue Sep 17, 2019 11:30 pm
tobetter wrote:
Tue Sep 17, 2019 11:21 pm
felipejfc wrote:
Tue Sep 17, 2019 11:19 pm
I'm trying to dual boot with the following setup:

emmc - CoreElec
usd - Ubuntu (latest hardkernel image)
petitboot - 201907 RC1

I can boot coreelec fine but when I select usd (ubuntu) in petitboot I see only a black screen (blue light is flashing in the board)... any help?
Have you success to boot with Ubuntu natively without Petitboot?
I have!
For that I needed to take off the emmc from the board, for some reason if I boot with emmc(coreelec 9.2) and usd plugged then I get stuck in coreelec splash image...
But yes, when I removed the emmc I was able to boot with only usd (ubuntu) attached to the board...

One thing that might worth mentioning is that when I select ubuntu on petitboot I see my TV's HDR symbol like it sent some display information to the TV but then I get no image at all...
about this, if I boot with petitboot using usd "Ubuntu 18.04.3 (MATE DESKTOP)" without the emmc (coreelec installed) plugged into the odroid n2 it boots fine, maybe the problem is with ubuntu image, not petitboot?

UPDATE
======

I did a apt full-upgrade and now it works 🤔

dapimp011
Posts: 9
Joined: Thu Aug 15, 2019 11:28 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by dapimp011 » Sun Sep 22, 2019 7:20 am

Ok, I finally made petitboot let me choose (and boot) both Armbian and Android.
First, I moved boot.ini of Armbian from /boot/boot.ini to /boot.ini and added just line at the start of boot.ini - setenv bootlabel "Armbian"
Than on sdcard boot.ini I added same setenv bootlabel "Armbian"

Now everything works perfect. This thread is huge help :)

Patjutzu
Posts: 11
Joined: Sun Mar 24, 2013 4:47 pm
languages_spoken: German
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by Patjutzu » Sat Sep 28, 2019 2:49 pm

Good morning
Is it possible to have CoreElec on emmc and boot Android on USB media ?

The other way around I tried that.

Greetings

User avatar
tobetter
Posts: 4024
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 43 times
Been thanked: 176 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Sat Sep 28, 2019 3:58 pm

Patjutzu wrote:
Sat Sep 28, 2019 2:49 pm
Good morning
Is it possible to have CoreElec on emmc and boot Android on USB media ?

The other way around I tried that.

Greetings
No, since Android is pretty much implemented to run only on eMMC or MMC card currently.

Patjutzu
Posts: 11
Joined: Sun Mar 24, 2013 4:47 pm
languages_spoken: German
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by Patjutzu » Sat Sep 28, 2019 6:25 pm

Thanks @tobetter

For your great work.
Too bad that it goes with android on emmc.

Greetings

minoccio
Posts: 8
Joined: Thu Sep 12, 2019 3:20 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 2 times
Been thanked: 1 time
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by minoccio » Sun Sep 29, 2019 12:13 am

It works with coreelec on emmc and Android on microSD card

xabolcs
Posts: 57
Joined: Fri Jun 22, 2018 6:37 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 73 times
Been thanked: 1 time
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by xabolcs » Sun Sep 29, 2019 5:39 pm

tobetter wrote:
Sat Sep 28, 2019 3:58 pm
No, since Android is pretty much implemented to run only on eMMC or MMC card currently.
It is possible to dualboot Android and Linux from eMMC?
Sure, I could have a microSD to contain Linux' BOOT partition.

User avatar
mad_ady
Posts: 6646
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 188 times
Been thanked: 143 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Sun Sep 29, 2019 7:10 pm

That should work - as long as the boot.ini on the sd card and the linux fstab point to the same partition. You coulc resize the last android partition and create a new one for linux (warning: not sure how many partitions android uses, but if it already has 4 primary partitions, you won't be able to create a 5th partition. Not sure if you can convert userdata to be extended...)

xabolcs
Posts: 57
Joined: Fri Jun 22, 2018 6:37 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 73 times
Been thanked: 1 time
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by xabolcs » Mon Sep 30, 2019 7:23 am

Looks like Android has more than 4 partitions, and fortunately the last partition is the user data.
Sounds good. Will try this Android + Linux on eMMC setup sometime.

User avatar
mad_ady
Posts: 6646
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 188 times
Been thanked: 143 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Mon Sep 30, 2019 1:45 pm

Let us know how it goes.

Patjutzu
Posts: 11
Joined: Sun Mar 24, 2013 4:47 pm
languages_spoken: German
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by Patjutzu » Tue Oct 01, 2019 7:53 pm

Hey, guys
how do i save my settings in the Petitboot ?
After restart everything is on default again

User avatar
tobetter
Posts: 4024
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 43 times
Been thanked: 176 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Tue Oct 01, 2019 7:59 pm

Patjutzu wrote:Hey, guys
how do i save my settings in the Petitboot ?
After restart everything is on default again
At the momoment, you need to attached a formated uSD card and the configuration will be stored as a file "petitboot.cfg" in it.

"Tapatalk wishes you to have fun with ODROID"

These users thanked the author tobetter for the post:
xabolcs (Tue Oct 01, 2019 10:46 pm)

Patjutzu
Posts: 11
Joined: Sun Mar 24, 2013 4:47 pm
languages_spoken: German
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by Patjutzu » Tue Oct 01, 2019 8:10 pm

so all I have to do is format a sdcard to fat32 and plug it in?

That's all I have to do ?

User avatar
tobetter
Posts: 4024
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 43 times
Been thanked: 176 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Tue Oct 01, 2019 8:17 pm

Patjutzu wrote:
Tue Oct 01, 2019 8:10 pm
so all I have to do is format a sdcard to fat32 and plug it in?

That's all I have to do ?
Yes and try to change the configuration, then try to reboot it. If your change keeps, it works. I am still working on not to use another storage to store the configuration.

Patjutzu
Posts: 11
Joined: Sun Mar 24, 2013 4:47 pm
languages_spoken: German
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by Patjutzu » Tue Oct 01, 2019 8:22 pm

Thank you, you're doing great support.
I will test it right now

loznic89
Posts: 9
Joined: Tue May 07, 2019 8:01 am
languages_spoken: spanish
ODROIDs: Odroid N2
Has thanked: 10 times
Been thanked: 1 time
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by loznic89 » Wed Oct 02, 2019 8:01 pm

minoccio wrote:
Sun Sep 29, 2019 12:13 am
It works with coreelec on emmc and Android on microSD card
trying but dont working android on sd card, dont appear in petitboot

User avatar
tobetter
Posts: 4024
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 43 times
Been thanked: 176 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Wed Oct 02, 2019 8:13 pm

loznic89 wrote:
Wed Oct 02, 2019 8:01 pm
minoccio wrote:
Sun Sep 29, 2019 12:13 am
It works with coreelec on emmc and Android on microSD card
trying but dont working android on sd card, dont appear in petitboot
Please check if your Petitboot is the version 20190705. Otherwise, you need to update it.
https://wiki.odroid.com/odroid-n2/os_im ... ev20190705
These users thanked the author tobetter for the post:
loznic89 (Fri Oct 04, 2019 10:31 pm)

loznic89
Posts: 9
Joined: Tue May 07, 2019 8:01 am
languages_spoken: spanish
ODROIDs: Odroid N2
Has thanked: 10 times
Been thanked: 1 time
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by loznic89 » Thu Oct 03, 2019 6:16 am

tobetter wrote:
Wed Oct 02, 2019 8:13 pm
loznic89 wrote:
Wed Oct 02, 2019 8:01 pm
minoccio wrote:
Sun Sep 29, 2019 12:13 am
It works with coreelec on emmc and Android on microSD card
trying but dont working android on sd card, dont appear in petitboot
Please check if your Petitboot is the version 20190705. Otherwise, you need to update it.
https://wiki.odroid.com/odroid-n2/os_im ... ev20190705
yes, today updating to Petitboot 20190705 and dont working

now i have coreelec in SSD and android in emmc but dont working too.only run coreelec. display black, white and colours screens when run android

I'm probably skipping some step thanks for reply,regards

loznic89
Posts: 9
Joined: Tue May 07, 2019 8:01 am
languages_spoken: spanish
ODROIDs: Odroid N2
Has thanked: 10 times
Been thanked: 1 time
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by loznic89 » Fri Oct 04, 2019 10:31 pm

tobetter wrote:
Wed Oct 02, 2019 8:13 pm
loznic89 wrote:
Wed Oct 02, 2019 8:01 pm
minoccio wrote:
Sun Sep 29, 2019 12:13 am
It works with coreelec on emmc and Android on microSD card
trying but dont working android on sd card, dont appear in petitboot
Please check if your Petitboot is the version 20190705. Otherwise, you need to update it.
https://wiki.odroid.com/odroid-n2/os_im ... ev20190705
Today reflasing spiboot.img from sdcard with ubuntu as wiki and now all working,nicely

Image

thanks again, good support!!

minoccio
Posts: 8
Joined: Thu Sep 12, 2019 3:20 pm
languages_spoken: english
ODROIDs: N2
Has thanked: 2 times
Been thanked: 1 time
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by minoccio » Tue Oct 08, 2019 4:01 pm

Isn't it possible to use a custom ir remote in petitboot? Mine, that works correctly in coreelec and android, doesn't work in petitboot and doesn't wake-up N2 when spi boot is selected

User avatar
tobetter
Posts: 4024
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 43 times
Been thanked: 176 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Tue Oct 08, 2019 6:17 pm

minoccio wrote:
Tue Oct 08, 2019 4:01 pm
Isn't it possible to use a custom ir remote in petitboot? Mine, that works correctly in coreelec and android, doesn't work in petitboot and doesn't wake-up N2 when spi boot is selected
The custom IR, which is not HK stock remote, does not work with Petitboot since there is no way to use register and manage the custom remote yet.
These users thanked the author tobetter for the post:
minoccio (Wed Oct 09, 2019 3:38 pm)

alpe
Posts: 52
Joined: Sat Apr 12, 2014 1:21 pm
languages_spoken: portuguese, english
ODROIDs: C1, N2 4GB
Location: Rio de Janeiro, Brazil
Has thanked: 9 times
Been thanked: 1 time
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by alpe » Mon Oct 14, 2019 7:49 am

When using armbian on an sdcard petitboot saves it's configuration without problem? Out of curiosity, where?

User avatar
tobetter
Posts: 4024
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 43 times
Been thanked: 176 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Mon Oct 14, 2019 8:51 am

alpe wrote:When using armbian on an sdcard petitboot saves it's configuration without problem? Out of curiosity, where?
It won't break it and will be saved in the first partition of SD card.

"Tapatalk wishes you to have fun with ODROID"


alpe
Posts: 52
Joined: Sat Apr 12, 2014 1:21 pm
languages_spoken: portuguese, english
ODROIDs: C1, N2 4GB
Location: Rio de Janeiro, Brazil
Has thanked: 9 times
Been thanked: 1 time
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by alpe » Tue Oct 15, 2019 7:53 am

tobetter wrote:
Mon Oct 14, 2019 8:51 am
alpe wrote:When using armbian on an sdcard petitboot saves it's configuration without problem? Out of curiosity, where?
It won't break it and will be saved in the first partition of SD card.

"Tapatalk wishes you to have fun with ODROID"
Thanks. Do you know in what folder or file? Curiosity.

User avatar
tobetter
Posts: 4024
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 43 times
Been thanked: 176 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Tue Oct 15, 2019 8:33 am

alpe wrote:
tobetter wrote:
Mon Oct 14, 2019 8:51 am
alpe wrote:When using armbian on an sdcard petitboot saves it's configuration without problem? Out of curiosity, where?
It won't break it and will be saved in the first partition of SD card.

"Tapatalk wishes you to have fun with ODROID"
Thanks. Do you know in what folder or file? Curiosity.
It's "petitboot.cfg" in the root directory of the first partition in SD card.

FYI, I would have an update to store the configuration into SPI flash memory itself without SD card, the version could be released at the very early Nov with other minor fixes.

"Tapatalk wishes you to have fun with ODROID"

These users thanked the author tobetter for the post:
mad_ady (Tue Oct 15, 2019 1:30 pm)

User avatar
mad_ady
Posts: 6646
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 188 times
Been thanked: 143 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Tue Oct 15, 2019 1:31 pm

Yay! Congrats on figuring out how to store the config in flash!

User avatar
tobetter
Posts: 4024
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 43 times
Been thanked: 176 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Tue Oct 15, 2019 1:31 pm

mad_ady wrote:
Tue Oct 15, 2019 1:31 pm
Yay! Congrats on figuring out how to store the config in flash!
Thanks, it's a bit tricky but looks like working...I am testing time to time at home. Also, the network will up and DHCP will run by default. Other changes are very minor other than two things.

User avatar
mad_ady
Posts: 6646
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 188 times
Been thanked: 143 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Tue Oct 15, 2019 2:09 pm

May I suggest, if possible, spawning a shell on the serial port as well?

jackinho
Posts: 11
Joined: Mon May 06, 2019 12:09 am
languages_spoken: english, german
ODROIDs: XU4, N2
Has thanked: 4 times
Been thanked: 3 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by jackinho » Tue Oct 15, 2019 4:07 pm

Tried it several times, but it seems that petitboot doesn't like my Apple keyboard … :( Is it a driver issue?

User avatar
tobetter
Posts: 4024
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 43 times
Been thanked: 176 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Tue Oct 15, 2019 5:54 pm

jackinho wrote:
Tue Oct 15, 2019 4:07 pm
Tried it several times, but it seems that petitboot doesn't like my Apple keyboard … :( Is it a driver issue?
It is, it will be fixed...sorry for the inconvenience.
These users thanked the author tobetter for the post:
jackinho (Wed Oct 16, 2019 3:10 am)

cobric
Posts: 2
Joined: Wed Oct 16, 2019 7:19 am
languages_spoken: english
ODROIDs: Odroid N2 4GB
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by cobric » Wed Oct 16, 2019 7:30 am

Hi all!
I just received my new Odroid N2 4GB CoreELEC edition board, and unfortunately I was too happy to try petitboot and use dual boot CoreELEC and Android and broke my board by updating petitboot :( What I did is not reading instruction carefully, and put spiboot.img (latest update) to my eMMC. Not only that, but I turned it upside-down and connect it to my board wrong way... After plugging in, board start to smell and smoke came out, I immediately plug it out but I think it was too late. Now, the board works generally, it boots in CoreELEC from SD Card but as soon as I plug in eMMC or USB (even dongle for keyboard) my Ethernet stops working. I can't even put OS on eMMC because Ethernet isn't working then :(
I know I can't claim warranty because it was my fault, but does anybody knows if there is some kind of solution? Maybe to detect and replace broken chip?
Thank you all for suggestions.

User avatar
tobetter
Posts: 4024
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 43 times
Been thanked: 176 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Wed Oct 16, 2019 7:24 pm

cobric wrote:
Wed Oct 16, 2019 7:30 am
Hi all!
I just received my new Odroid N2 4GB CoreELEC edition board, and unfortunately I was too happy to try petitboot and use dual boot CoreELEC and Android and broke my board by updating petitboot :( What I did is not reading instruction carefully, and put spiboot.img (latest update) to my eMMC. Not only that, but I turned it upside-down and connect it to my board wrong way... After plugging in, board start to smell and smoke came out, I immediately plug it out but I think it was too late. Now, the board works generally, it boots in CoreELEC from SD Card but as soon as I plug in eMMC or USB (even dongle for keyboard) my Ethernet stops working. I can't even put OS on eMMC because Ethernet isn't working then :(
I know I can't claim warranty because it was my fault, but does anybody knows if there is some kind of solution? Maybe to detect and replace broken chip?
Thank you all for suggestions.
Sorry about your bad luck.
Can you share the photo of your board and eMMC in high resolution as much as you can?

User avatar
tobetter
Posts: 4024
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 43 times
Been thanked: 176 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Wed Oct 16, 2019 7:26 pm

mad_ady wrote:
Tue Oct 15, 2019 2:09 pm
May I suggest, if possible, spawning a shell on the serial port as well?
"if possible"...right?

User avatar
mad_ady
Posts: 6646
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 188 times
Been thanked: 143 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Wed Oct 16, 2019 8:32 pm

I'm not sure what init system you're using in the initramfs. If it's system-v based, something like

Code: Select all

s0:2345:respawn:/sbin/getty -L 115200 ttyS0 vt102
in /etc/inittab should do the trick.

If you don't have an init system and are just starting programs, if you have getty already (if not, not sure how big it is), you could do:

Code: Select all

getty -L 115200 ttyS0 vt102
at the end of your init script.

Ideas from here: https://superuser.com/questions/1335796 ... l-on-linux
Hopefully all the bits are already in your system and won't take up additional space...

User avatar
tobetter
Posts: 4024
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 43 times
Been thanked: 176 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Wed Oct 16, 2019 8:40 pm

Thanks, I know kind of them. Peititboot for N2 does not have inittab and not sure getty can be imported due to the size which would be a challenge for me. Let try it out sometime. ;)

"Tapatalk wishes you to have fun with ODROID"


User avatar
mad_ady
Posts: 6646
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 188 times
Been thanked: 143 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Wed Oct 16, 2019 9:16 pm

There is a hardcore way of starting a shell, since the serial port is already initialized and you don't need getty. I'll play with it tomorrow a bit - something like /bin/sh >/dev/ttyUSB0 </dev/ttyUSB0 2>&1 &

User avatar
tobetter
Posts: 4024
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 43 times
Been thanked: 176 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Wed Oct 16, 2019 9:20 pm

mad_ady wrote:
Wed Oct 16, 2019 9:16 pm
There is a hardcore way of starting a shell, since the serial port is already initialized and you don't need getty. I'll play with it tomorrow a bit - something like /bin/sh >/dev/ttyUSB0 </dev/ttyUSB0 2>&1 &
Let me cross my finger for you!!

EDIT: I am able to open a shell to serial port using getty. Fortunately, it's already in the root file system. So I added one line below before launching the Petitboot executable.

Code: Select all

/sbin/getty -L ttyS0 115200 vt100 -n -l /bin/sh &
Which I am not figured out is to run Petitboot simultaneously runs on HDMI display as well as on the serial port. But you can run petitboot-nc in the serial terminal and can run the same functionality. I think this is not a major issue for generic users.
These users thanked the author tobetter for the post:
mad_ady (Thu Oct 17, 2019 4:03 pm)

IskyNetFree
Posts: 4
Joined: Tue Aug 27, 2019 11:23 pm
languages_spoken: english
ODROIDs: ODROID N2
Has thanked: 2 times
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by IskyNetFree » Thu Oct 17, 2019 3:35 pm

Petitboot 20190705 -rc1 is excellent, but It's has a problem with TV which has
resolution lower than 1080P. It's not show anything on screen.
Could someone advice me how to config this excellent petitboot auto resolution from 1080P to 1080I resolution for any TV which has resolution lower than 1080P.

User avatar
tobetter
Posts: 4024
Joined: Mon Feb 25, 2013 10:55 am
languages_spoken: Korean, English
ODROIDs: X, X2, U2, U3, XU3, C1
Location: Paju, South Korea
Has thanked: 43 times
Been thanked: 176 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Thu Oct 17, 2019 3:38 pm

IskyNetFree wrote:
Thu Oct 17, 2019 3:35 pm
Petitboot 20190705 -rc1 is excellent, but It's has a problem with TV which has
resolution lower than 1080P. It's not show anything on screen.
Could someone advice me how to config this excellent petitboot auto resolution from 1080P to 1080I resolution for any TV which has resolution lower than 1080P.
Currently, Petitboot uses 1080P by default and I am working to let user can set the resolution in case a display does not come or want to change the default resolution like your case. I hope it can be released by early Nov that I am planning.
These users thanked the author tobetter for the post (total 2):
rooted (Thu Oct 17, 2019 5:29 pm) • IskyNetFree (Thu Oct 17, 2019 5:59 pm)

User avatar
mad_ady
Posts: 6646
Joined: Wed Jul 15, 2015 5:00 pm
languages_spoken: english
ODROIDs: XU4, C1+, C2, N1, H2, N2
Location: Bucharest, Romania
Has thanked: 188 times
Been thanked: 143 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Thu Oct 17, 2019 4:03 pm

Sounds great @tobetter!

cobric
Posts: 2
Joined: Wed Oct 16, 2019 7:19 am
languages_spoken: english
ODROIDs: Odroid N2 4GB
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by cobric » Thu Oct 17, 2019 4:48 pm

tobetter wrote:
Wed Oct 16, 2019 7:24 pm
cobric wrote:
Wed Oct 16, 2019 7:30 am
Hi all!
I just received my new Odroid N2 4GB CoreELEC edition board, and unfortunately I was too happy to try petitboot and use dual boot CoreELEC and Android and broke my board by updating petitboot :( What I did is not reading instruction carefully, and put spiboot.img (latest update) to my eMMC. Not only that, but I turned it upside-down and connect it to my board wrong way... After plugging in, board start to smell and smoke came out, I immediately plug it out but I think it was too late. Now, the board works generally, it boots in CoreELEC from SD Card but as soon as I plug in eMMC or USB (even dongle for keyboard) my Ethernet stops working. I can't even put OS on eMMC because Ethernet isn't working then :(
I know I can't claim warranty because it was my fault, but does anybody knows if there is some kind of solution? Maybe to detect and replace broken chip?
Thank you all for suggestions.
Sorry about your bad luck.
Can you share the photo of your board and eMMC in high resolution as much as you can?
Hi! Thank you for your answer and your help.
Here are photos:

I think I found burned part, because there was smoke coming from that part of the board - It's in this picture IMG_20191017_084553.jpg (first one in album) clearly visible above C148 component. I don't know if anything can be done to replace it, and what it is?

I currently use workaround that is working pretty solid - CoreELEC on SD card and network with USB3 -> Ethernet adapter. I had luck that main parts - CPU, memory survived :) Unfortunately I can't use eMMC and onboard gigabit Ethernet, but I should be lucky with what I have.

Thank you again!

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 1 guest