Petitboot, yet another bootloader based on KEXEC

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Mon Oct 21, 2019 11:57 am

woodyl wrote:
Mon Oct 21, 2019 11:49 am
I haven't installed this latest Petitiboot version, but I was testing fw_printenv. I get an error with fw_env.config. Is fw_printenv supposed to work with earlier versions of Petitboot? What parameters should be set in fw_env.config?
The commands fw_printenv and fw_setenv won't work in the previous version regardless of fw_env.config since the previous version is not capable to access SPI flash memory where U-boot environment is stored in. The new version can manage it using those commands after running a script spimmc.sh which is to switch between SPI flash memory and eMMC/SD.

IgaBiva
Posts: 44
Joined: Tue May 07, 2019 4:00 pm
languages_spoken: english, deutsch, srpski
ODROIDs: N2
Has thanked: 0
Been thanked: 5 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by IgaBiva » Mon Oct 21, 2019 6:39 pm

There is one functionality that would make my life a bit easier but I don't know if this is possible at all with Petitboot.

e.g. my primary system is CoreElec on emmc and I have TheRa on micro sd. I am playing arround with configurations of TheRa with ssh and I sometimes need to reboot TheRa. However, since CoreElec is default OS (and it will stay like this), I need to start my TV just to change OS from Pettitboot with a keyboard in order to boot TheRa again.

Would it be possible to reboot from one system directly to another without Pettitboot menu (without monitor)? Like reboot to sd card etc?

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Mon Oct 21, 2019 7:27 pm

Since you have sd you could change the conf file on sd and set the default os. When you boot any os you set coreelec again.

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Mon Oct 21, 2019 11:50 pm

@tobetter: I managed to flash your new build, but I didn't have time to play with it too much.
I can confirm that:
1. I have a working shell over serial - thanks!
2. DHCP works correctly

3. The monitor doesn't work with 1280x1024. I will do some more testing tomorrow.

Code: Select all

U-Boot 2015.01 (Oct 20 2019 - 10:29:46)

DRAM:  3.5 GiB
Relocation Offset is: d6ef3000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 00000000d7f84ba0
MMC:   aml_priv->desc_buf = 0x00000000d3ee37c0
aml_priv->desc_buf = 0x00000000d3ee5b00
SDIO Port C: 0, SDIO Port B: 1
spifc_probe: reg=00000000ffd14000, mem_map=00000000f6000000
SF: Detected MX25U6435F with page size 256 Bytes, erase size 64 KiB, total 8 MiB
In:    serial
Out:   serial
Err:   serial
vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default parameters
vpu: driver version: v20190313
vpu: detect chip type: 9
vpu: clk_level default: 7(666667000Hz), max: 7(666667000Hz)
vpu: clk_level = 7
vpu: vpu_power_on
vpu: set_vpu_clk
vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100)
vpu: set_vpu_clk finish
vpu: vpu_module_init_config
vpp: vpp_init
vpp: g12a/b osd1 matrix rgb2yuv ..............
vpp: g12a/b osd2 matrix rgb2yuv..............
vpp: g12a/b osd3 matrix rgb2yuv..............
cvbs: cpuid:0x29
cvbs_config_hdmipll_g12a
cvbs_set_vid2_clk
SF: Detected MX25U6435F with page size 256 Bytes, erase size 64 KiB, total 8 MiB
card out
** Bad device mmc 1 **
SF: 65536 bytes @ 0x100000 Read: OK
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]set initrd_high: 0x3d800000
[OSD]fb_addr for logo: 0x3d800000
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]fb_addr for logo: 0x3d800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x3d800000 width=3840, height=1440
cvbs: outputmode[1280x1024p60hz] is invalid
vpp: vpp_matrix_update: 2
set hdmitx VIC = 780
config HPLL = 4320000 frac_rate = 1
HPLL: 0x3b0004b3
HPLL: 0x1b0004b3
HPLL: 0xdb0004b3
config HPLL done
j = 20  vid_clk_div = 2
hdmitx phy setting done
hdmitx: set enc for VIC: 780
enc_vpu_bridge_reset[1312]
rx version is 1.4 or below  div=10
set hdmitx VIC = 780
config HPLL = 4320000 frac_rate = 1
HPLL: 0x3b0004b3
HPLL: 0x1b0004b3
HPLL: 0xdb0004b3
config HPLL done
j = 20  vid_clk_div = 2
hdmitx phy setting done
hdmitx: set enc for VIC: 780
enc_vpu_bridge_reset[1312]
rx version is 1.4 or below  div=10
[OSD]osd_hw.free_dst_data: 0,1279,0,1023
Net:   dwmac.ff3f0000
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
emmc/sd response timeout, cmd8, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
Hit Enter or space or Ctrl+C key to stop autoboot -- :  0
edid extension block number : 1
Dump EDID Rawdata
00000000000000004eae950500000000310f010380261e78eacb05a3584c9b25
135054bfef0081808190718601010101010101010101302a009851002a403070
1300782d11000014000000fd00384b1f510e000a202020202020000000fc0058
37323032410a202020202020000000ff00303534395042303934320a2020001f
No header found - count 0
hdmitx: read edid fails.. retry..
edid extension block number : 1
Dump EDID Rawdata
00ffffffffffff004eae950500000000310f010380261e78eacb05a3584c9b25
135054bfef0081808190718601010101010101010101302a009851002a403070
1300782d11000014000000fd00384b1f510e000a202020202020000000fc0058
37323032410a202020202020000000ff00303534395042303934320a2020001f
no available storage to save debug file
Manufacturer: SUN Model 595 Serial Number 0
EDID version: 1.3
Established timings supported:
  720x400@70Hz
  640x480@60Hz
  640x480@67Hz
  640x480@72Hz
  640x480@75Hz
  800x600@56Hz
  800x600@60Hz
  800x600@72Hz
  800x600@75Hz
  832x624@75Hz
  1024x768@60Hz
  1024x768@70Hz
  1024x768@75Hz
  1280x1024@75Hz
Standard timings supported:
  1280x1024@60Hz
  1280x1024@76Hz
  1152x921@66Hz
Detailed mode (1) : Clock 108 MHz, 376 mm x 301 mm
               1280 1328 1440 1688 hborder 0
               1024 1025 1028 1066 vborder 0
               -hsync +vsync digital composite
Monitor ranges (GTF): 56-75Hz V, 31-81kHz H, max dotclock 140MHz
Monitor name: X7202A
Serial number: 0549PB0942
Checksum: 0x1f (valid)
bestmode is custombuilt, IEEEOUI 0x000000
DVI Mode
no available storage to save debug file
SF: 3932160 bytes @ 0x130000 Read: OK
SF: 3211264 bytes @ 0x4f0000 Read: OK
SF: 131072 bytes @ 0x110000 Read: OK
card out
** Bad device mmc 1 **
ee_gate_off ...
## Booting kernel from Legacy Image at 04000000 ...
   Image Name:
   Image Type:   AArch64 Linux Kernel Image (gzip compressed)
   Data Size:    3819870 Bytes = 3.6 MiB
   Load Address: 01080000
   Entry Point:  01080000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03080000 ...
   Image Name:
   Image Type:   AArch64 Linux RAMDisk Image (uncompressed)
   Data Size:    2972246 Bytes = 2.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
load dtb from 0x1000000 ......
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x1000000
libfdt fdt_path_offset() returned FDT_ERR_BADPATH
   Uncompressing Kernel Image ... OK
   kernel loaded at 0x01080000, end = 0x019b8008
   Loading Ramdisk to 3d52a000, end 3d7ffa56 ... OK
   Loading Device Tree to 000000001ffec000, end 000000001ffffdbb ... OK
fdt_fixup_memory_banks, reg:0000000000000000

Starting kernel ...

uboot time: 8101489 us
codec_mm_module_init
clkmsr ffd18004.meson_clk_msr: failed to get msr ring reg0
cvbs_out: error: failed to get vdac_config
cvbs_out: chrdev devno 264241152 for disp
meson-pwm ff802000.pwm: pwm pinmux : can't get pinctrl
meson-pwm ffd1b000.pwm: pwm pinmux : can't get pinctrl
ff803000.serial: clock gate not found
rtc-pcf8563 3-0051: low voltage detected, date/time is not reliable.
amvideocap_probe,amvideocap
use cma buf.
di_get_vpu_clkb: get clk vpu error.
rtc-pcf8563 3-0051: low voltage detected, date/time is not reliable.
rtc-pcf8563 3-0051: hctosys: unable to read the hardware clock

/ # 
/ # spimmc.sh 
W: SPI flash memory is accessible.
/ # 
/ # printenv
voutmode=dvi
SHLVL=2
HOME=/
video_reverse=0
hdmimode=1280x1024p60hz
vout=1280x1024p60hz
earlyprintk=aml-uart,0xff803000
modeline=1280
logo=osd0
TERM=vt100
customwidth=1280
PWD=/
customheight=1024

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Tue Oct 22, 2019 12:00 am

mad_ady wrote:
Mon Oct 21, 2019 11:50 pm
@tobetter: I managed to flash your new build, but I didn't have time to play with it too much.
I can confirm that:
1. I have a working shell over serial - thanks!
2. DHCP works correctly

3. The monitor doesn't work with 1280x1024. I will do some more testing tomorrow.

Code: Select all

U-Boot 2015.01 (Oct 20 2019 - 10:29:46)

DRAM:  3.5 GiB
Relocation Offset is: d6ef3000
spi_post_bind(spifc): req_seq = 0
register usb cfg[0][1] = 00000000d7f84ba0
MMC:   aml_priv->desc_buf = 0x00000000d3ee37c0
aml_priv->desc_buf = 0x00000000d3ee5b00
SDIO Port C: 0, SDIO Port B: 1
spifc_probe: reg=00000000ffd14000, mem_map=00000000f6000000
SF: Detected MX25U6435F with page size 256 Bytes, erase size 64 KiB, total 8 MiB
In:    serial
Out:   serial
Err:   serial
vpu: error: vpu: check dts: FDT_ERR_BADMAGIC, load default parameters
vpu: driver version: v20190313
vpu: detect chip type: 9
vpu: clk_level default: 7(666667000Hz), max: 7(666667000Hz)
vpu: clk_level = 7
vpu: vpu_power_on
vpu: set_vpu_clk
vpu: set clk: 666667000Hz, readback: 666666667Hz(0x100)
vpu: set_vpu_clk finish
vpu: vpu_module_init_config
vpp: vpp_init
vpp: g12a/b osd1 matrix rgb2yuv ..............
vpp: g12a/b osd2 matrix rgb2yuv..............
vpp: g12a/b osd3 matrix rgb2yuv..............
cvbs: cpuid:0x29
cvbs_config_hdmipll_g12a
cvbs_set_vid2_clk
SF: Detected MX25U6435F with page size 256 Bytes, erase size 64 KiB, total 8 MiB
card out
** Bad device mmc 1 **
SF: 65536 bytes @ 0x100000 Read: OK
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]set initrd_high: 0x3d800000
[OSD]fb_addr for logo: 0x3d800000
[OSD]check dts: FDT_ERR_BADMAGIC, load default fb_addr parameters
[OSD]fb_addr for logo: 0x3d800000
[OSD]VPP_OFIFO_SIZE:0xfff01fff
[CANVAS]canvas init
[CANVAS]addr=0x3d800000 width=3840, height=1440
cvbs: outputmode[1280x1024p60hz] is invalid
vpp: vpp_matrix_update: 2
set hdmitx VIC = 780
config HPLL = 4320000 frac_rate = 1
HPLL: 0x3b0004b3
HPLL: 0x1b0004b3
HPLL: 0xdb0004b3
config HPLL done
j = 20  vid_clk_div = 2
hdmitx phy setting done
hdmitx: set enc for VIC: 780
enc_vpu_bridge_reset[1312]
rx version is 1.4 or below  div=10
set hdmitx VIC = 780
config HPLL = 4320000 frac_rate = 1
HPLL: 0x3b0004b3
HPLL: 0x1b0004b3
HPLL: 0xdb0004b3
config HPLL done
j = 20  vid_clk_div = 2
hdmitx phy setting done
hdmitx: set enc for VIC: 780
enc_vpu_bridge_reset[1312]
rx version is 1.4 or below  div=10
[OSD]osd_hw.free_dst_data: 0,1279,0,1023
Net:   dwmac.ff3f0000
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
co-phase 0x3, tx-dly 0, clock 400000
emmc/sd response timeout, cmd8, status=0x1bf2800
emmc/sd response timeout, cmd55, status=0x1bf2800
emmc/sd response timeout, cmd1, status=0x1bf2800
Hit Enter or space or Ctrl+C key to stop autoboot -- :  0
edid extension block number : 1
Dump EDID Rawdata
00000000000000004eae950500000000310f010380261e78eacb05a3584c9b25
135054bfef0081808190718601010101010101010101302a009851002a403070
1300782d11000014000000fd00384b1f510e000a202020202020000000fc0058
37323032410a202020202020000000ff00303534395042303934320a2020001f
No header found - count 0
hdmitx: read edid fails.. retry..
edid extension block number : 1
Dump EDID Rawdata
00ffffffffffff004eae950500000000310f010380261e78eacb05a3584c9b25
135054bfef0081808190718601010101010101010101302a009851002a403070
1300782d11000014000000fd00384b1f510e000a202020202020000000fc0058
37323032410a202020202020000000ff00303534395042303934320a2020001f
no available storage to save debug file
Manufacturer: SUN Model 595 Serial Number 0
EDID version: 1.3
Established timings supported:
  720x400@70Hz
  640x480@60Hz
  640x480@67Hz
  640x480@72Hz
  640x480@75Hz
  800x600@56Hz
  800x600@60Hz
  800x600@72Hz
  800x600@75Hz
  832x624@75Hz
  1024x768@60Hz
  1024x768@70Hz
  1024x768@75Hz
  1280x1024@75Hz
Standard timings supported:
  1280x1024@60Hz
  1280x1024@76Hz
  1152x921@66Hz
Detailed mode (1) : Clock 108 MHz, 376 mm x 301 mm
               1280 1328 1440 1688 hborder 0
               1024 1025 1028 1066 vborder 0
               -hsync +vsync digital composite
Monitor ranges (GTF): 56-75Hz V, 31-81kHz H, max dotclock 140MHz
Monitor name: X7202A
Serial number: 0549PB0942
Checksum: 0x1f (valid)
bestmode is custombuilt, IEEEOUI 0x000000
DVI Mode
no available storage to save debug file
SF: 3932160 bytes @ 0x130000 Read: OK
SF: 3211264 bytes @ 0x4f0000 Read: OK
SF: 131072 bytes @ 0x110000 Read: OK
card out
** Bad device mmc 1 **
ee_gate_off ...
## Booting kernel from Legacy Image at 04000000 ...
   Image Name:
   Image Type:   AArch64 Linux Kernel Image (gzip compressed)
   Data Size:    3819870 Bytes = 3.6 MiB
   Load Address: 01080000
   Entry Point:  01080000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 03080000 ...
   Image Name:
   Image Type:   AArch64 Linux RAMDisk Image (uncompressed)
   Data Size:    2972246 Bytes = 2.8 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
load dtb from 0x1000000 ......
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x1000000
libfdt fdt_path_offset() returned FDT_ERR_BADPATH
   Uncompressing Kernel Image ... OK
   kernel loaded at 0x01080000, end = 0x019b8008
   Loading Ramdisk to 3d52a000, end 3d7ffa56 ... OK
   Loading Device Tree to 000000001ffec000, end 000000001ffffdbb ... OK
fdt_fixup_memory_banks, reg:0000000000000000

Starting kernel ...

uboot time: 8101489 us
codec_mm_module_init
clkmsr ffd18004.meson_clk_msr: failed to get msr ring reg0
cvbs_out: error: failed to get vdac_config
cvbs_out: chrdev devno 264241152 for disp
meson-pwm ff802000.pwm: pwm pinmux : can't get pinctrl
meson-pwm ffd1b000.pwm: pwm pinmux : can't get pinctrl
ff803000.serial: clock gate not found
rtc-pcf8563 3-0051: low voltage detected, date/time is not reliable.
amvideocap_probe,amvideocap
use cma buf.
di_get_vpu_clkb: get clk vpu error.
rtc-pcf8563 3-0051: low voltage detected, date/time is not reliable.
rtc-pcf8563 3-0051: hctosys: unable to read the hardware clock

/ # 
/ # spimmc.sh 
W: SPI flash memory is accessible.
/ # 
/ # printenv
voutmode=dvi
SHLVL=2
HOME=/
video_reverse=0
hdmimode=1280x1024p60hz
vout=1280x1024p60hz
earlyprintk=aml-uart,0xff803000
modeline=1280
logo=osd0
TERM=vt100
customwidth=1280
PWD=/
customheight=1024
Thanks for testing. For sure, you should run fw_printenv if you are intended to read the U-boot environment.

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Tue Oct 22, 2019 2:28 am

Oops, my bad...

pete113
Posts: 7
Joined: Tue Oct 22, 2019 2:13 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by pete113 » Tue Oct 22, 2019 2:33 am

I have CoreELEC installed on eMMC and Android installed on uSD card. If I remove eMMC I am able to boot Android, however with eMMC in place it just keeps rebooting. Do I have to setup something to get it work?
Is this combination even possible? Thanks

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Tue Oct 22, 2019 2:54 am

You might get much more performance out of android if you put Android on the emmc

IgaBiva
Posts: 44
Joined: Tue May 07, 2019 4:00 pm
languages_spoken: english, deutsch, srpski
ODROIDs: N2
Has thanked: 0
Been thanked: 5 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by IgaBiva » Tue Oct 22, 2019 5:23 am

pete113 wrote:
Tue Oct 22, 2019 2:33 am
I have CoreELEC installed on eMMC and Android installed on uSD card. If I remove eMMC I am able to boot Android, however with eMMC in place it just keeps rebooting. Do I have to setup something to get it work?
Is this combination even possible? Thanks
well, I have CoreElec on emmc, Android on sd card and The RA on USB - everything works without any issues

Just make sure that you have latest Petitboot installed
These users thanked the author IgaBiva for the post:
rooted (Tue Oct 22, 2019 6:47 am)

User avatar
rooted
Posts: 6924
Joined: Fri Dec 19, 2014 9:12 am
languages_spoken: english
Location: Gulf of Mexico, US
Has thanked: 278 times
Been thanked: 71 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by rooted » Tue Oct 22, 2019 6:47 am

IgaBiva wrote:
pete113 wrote:
Tue Oct 22, 2019 2:33 am
I have CoreELEC installed on eMMC and Android installed on uSD card. If I remove eMMC I am able to boot Android, however with eMMC in place it just keeps rebooting. Do I have to setup something to get it work?
Is this combination even possible? Thanks
well, I have CoreElec on emmc, Android on sd card and The RA on USB - everything works without any issues

Just make sure that you have latest Petitboot installed
What uSD are you using?

pete113
Posts: 7
Joined: Tue Oct 22, 2019 2:13 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by pete113 » Tue Oct 22, 2019 10:01 pm

IgaBiva wrote:
Tue Oct 22, 2019 5:23 am
pete113 wrote:
Tue Oct 22, 2019 2:33 am
I have CoreELEC installed on eMMC and Android installed on uSD card. If I remove eMMC I am able to boot Android, however with eMMC in place it just keeps rebooting. Do I have to setup something to get it work?
Is this combination even possible? Thanks
well, I have CoreElec on emmc, Android on sd card and The RA on USB - everything works without any issues

Just make sure that you have latest Petitboot installed
I have Petiboot: 20191020-rc1
Did you modified any boot.ini file?

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Tue Oct 22, 2019 10:07 pm

pete113 wrote:
Tue Oct 22, 2019 10:01 pm
IgaBiva wrote:
Tue Oct 22, 2019 5:23 am
pete113 wrote:
Tue Oct 22, 2019 2:33 am
I have CoreELEC installed on eMMC and Android installed on uSD card. If I remove eMMC I am able to boot Android, however with eMMC in place it just keeps rebooting. Do I have to setup something to get it work?
Is this combination even possible? Thanks
well, I have CoreElec on emmc, Android on sd card and The RA on USB - everything works without any issues

Just make sure that you have latest Petitboot installed
I have Petiboot: 20191020-rc1
Did you modified any boot.ini file?
Were you able to run the same setup with the previous Petitboot?

pete113
Posts: 7
Joined: Tue Oct 22, 2019 2:13 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by pete113 » Wed Oct 23, 2019 6:14 am

tobetter wrote:
Tue Oct 22, 2019 10:07 pm
pete113 wrote:
Tue Oct 22, 2019 10:01 pm
IgaBiva wrote:
Tue Oct 22, 2019 5:23 am
pete113 wrote:
Tue Oct 22, 2019 2:33 am
I have CoreELEC installed on eMMC and Android installed on uSD card. If I remove eMMC I am able to boot Android, however with eMMC in place it just keeps rebooting. Do I have to setup something to get it work?
Is this combination even possible? Thanks
well, I have CoreElec on emmc, Android on sd card and The RA on USB - everything works without any issues

Just make sure that you have latest Petitboot installed
I have Petiboot: 20191020-rc1
Did you modified any boot.ini file?
Were you able to run the same setup with the previous Petitboot?
No, I tried Petitboot (dev.20190705) before.

IgaBiva
Posts: 44
Joined: Tue May 07, 2019 4:00 pm
languages_spoken: english, deutsch, srpski
ODROIDs: N2
Has thanked: 0
Been thanked: 5 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by IgaBiva » Wed Oct 23, 2019 4:18 pm

@rooted - I am using SanDisk Ultra 16Gb micro sd card - nothing fancy

@pete113 - no, i have not modified boot.ini - everything was plug and play

Maybe I was succesfull because of the way I installed OS'es:

I have installed CoreElec with only emmc card on N2, than Android with only sd card and TheRa with only USB. When I say install, I mean flash on PC, put a card/usb on N2 and let OS start (configure itself) for a first time and than reboot.

After this is done, I have installed all 3 cards on N2 and Petitboot recognized them without any intervention from my side.

I am using 201907-RC1
These users thanked the author IgaBiva for the post:
rooted (Thu Oct 24, 2019 3:48 am)

cobric
Posts: 13
Joined: Wed Oct 16, 2019 7:19 am
languages_spoken: english
ODROIDs: Odroid N2 4GB
Has thanked: 5 times
Been thanked: 1 time
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by cobric » Wed Oct 23, 2019 5:49 pm

Hi all!

Just to say that I have same problem as @pete113. I have CoreELEC on emmc, and latest Android 9 x64 on SD card, and booting Android from petitboot does not work. Both OS-es are detected and displayed in the list, but after selecting Android boot is stuck on HardKernel logo. On the other hand, booting CoreELEC from emmc works without problem. If I switch boot from SPI to MMC, and leave just SD card attached Android boots without problems. I tried multiple versions of Android, also LineageOS but unfortunately it does not work. I read somewhere that Android must be on emmc to correctly boot but as I use CoreELEC most of the time for me it's not an option.

As I need Android just few times per month, I can live with pulling out emmc :)

I'm on latest Petitboot 20191020-rc1

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Wed Oct 23, 2019 6:13 pm

cobric wrote:
Wed Oct 23, 2019 5:49 pm
Hi all!

Just to say that I have same problem as @pete113. I have CoreELEC on emmc, and latest Android 9 x64 on SD card, and booting Android from petitboot does not work. Both OS-es are detected and displayed in the list, but after selecting Android boot is stuck on HardKernel logo. On the other hand, booting CoreELEC from emmc works without problem. If I switch boot from SPI to MMC, and leave just SD card attached Android boots without problems. I tried multiple versions of Android, also LineageOS but unfortunately it does not work. I read somewhere that Android must be on emmc to correctly boot but as I use CoreELEC most of the time for me it's not an option.

As I need Android just few times per month, I can live with pulling out emmc :)

I'm on latest Petitboot 20191020-rc1
I've quickly tested the same setup and I was able to boot Android Pie 64bit from Petitboot on uSD while CE is on eMMC. Can you let me know what's the vendor/model of your uSD?

cobric
Posts: 13
Joined: Wed Oct 16, 2019 7:19 am
languages_spoken: english
ODROIDs: Odroid N2 4GB
Has thanked: 5 times
Been thanked: 1 time
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by cobric » Wed Oct 23, 2019 9:12 pm

tobetter wrote:
Wed Oct 23, 2019 6:13 pm
I've quickly tested the same setup and I was able to boot Android Pie 64bit from Petitboot on uSD while CE is on eMMC. Can you let me know what's the vendor/model of your uSD?
It's Samsung EVO plus 32 GB: https://www.samsung.com/my/memory-stora ... MC32DAAPC/
I don't know why some people have this problem like @pete113 and I, and some don't... Is there any log that I can send you?

pete113
Posts: 7
Joined: Tue Oct 22, 2019 2:13 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by pete113 » Thu Oct 24, 2019 2:11 am

tobetter wrote:
Wed Oct 23, 2019 6:13 pm
I've quickly tested the same setup and I was able to boot Android Pie 64bit from Petitboot on uSD while CE is on eMMC. Can you let me know what's the vendor/model of your uSD?
I use: Sandisk 8GB Industrial MLC MicroSD SDHC UHS-I Class 10

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Thu Oct 24, 2019 2:27 am

pete113 wrote:
Thu Oct 24, 2019 2:11 am
tobetter wrote:
Wed Oct 23, 2019 6:13 pm
I've quickly tested the same setup and I was able to boot Android Pie 64bit from Petitboot on uSD while CE is on eMMC. Can you let me know what's the vendor/model of your uSD?
I use: Sandisk 8GB Industrial MLC MicroSD SDHC UHS-I Class 10
I also have tested with Sandisk one.

pete113
Posts: 7
Joined: Tue Oct 22, 2019 2:13 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by pete113 » Thu Oct 24, 2019 7:22 am

@IgaBiva I tried clean install of all OS'es the same way you did and now it is working. I am able to boot CoreElec from emmc card and Android from sd card in Petitboot. Thank you

MattN
Posts: 3
Joined: Wed Apr 24, 2019 12:37 pm
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by MattN » Thu Oct 24, 2019 7:29 am

Hi, I am new to the Odroid petitboot and thought I wold try to see if it would work for me. I downloaded the 20191020-rc1 to my main system. I started etcher and it reported "It looks like this is not a bootable image. The image does not appear to contain a partition table, and might not be recognized or bootable by your device." I tried again with the same result. I then downloaded spibios_odroidn2_20190408+85.img and tried that one. Got the same result! I tried dd the device and it doesn't produce anything. I've used etcher to program SD cards before and even since this occurred and they seem to work fine. I am wondering if I am doing something wrong, or have I done something wrong before this? I had installed Armbian on a SD card and wanted to put it on a hard drive. so I ran I ran armbain-config | System |Install | and selected the hard drive and lo and behold Armbian is running off the hard drive. I had used a 64G SD card and thought I would rather use it for something else so I installed Armbian on my emm card and repeated moving everything to the hard drive. I have to have the emm card in the system (it was the same with the SD card) to get to the system on the drive. Could that have caused me to uncover this problem I've got now? Maybe I am doing something wrong during the download. I could sur like to get petitboot working so I could continue my search for a multiboot answer. I sure hope some one can help me get it working.

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Thu Oct 24, 2019 1:19 pm

In order to update petitboot you don't need etcher or dd. Simply copy the img file to a sd card in its root directory and have the file named spiboot.img. Boot with the spi switch in the spi position and it should start to update by itself.

MattN
Posts: 3
Joined: Wed Apr 24, 2019 12:37 pm
languages_spoken: english
ODROIDs: odroid-n2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by MattN » Thu Oct 24, 2019 3:24 pm

I followed your instructions and IT WORKED! Thank you mad_ady.

cobric
Posts: 13
Joined: Wed Oct 16, 2019 7:19 am
languages_spoken: english
ODROIDs: Odroid N2 4GB
Has thanked: 5 times
Been thanked: 1 time
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by cobric » Fri Oct 25, 2019 5:47 am

pete113 wrote:
Thu Oct 24, 2019 7:22 am
@IgaBiva I tried clean install of all OS'es the same way you did and now it is working. I am able to boot CoreElec from emmc card and Android from sd card in Petitboot. Thank you
Hi!
Did you first time boot them with Petitboot? I tried with other SD card (SanDisk) and it still does not working, even if I leave just SD card without emmc, Android won't boot with Petitboot...

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Fri Oct 25, 2019 11:16 am

cobric wrote:
Fri Oct 25, 2019 5:47 am
pete113 wrote:
Thu Oct 24, 2019 7:22 am
@IgaBiva I tried clean install of all OS'es the same way you did and now it is working. I am able to boot CoreElec from emmc card and Android from sd card in Petitboot. Thank you
Hi!
Did you first time boot them with Petitboot? I tried with other SD card (SanDisk) and it still does not working, even if I leave just SD card without emmc, Android won't boot with Petitboot...
Are you able to start Android without Petitboot while your SD card is attached?

cobric
Posts: 13
Joined: Wed Oct 16, 2019 7:19 am
languages_spoken: english
ODROIDs: Odroid N2 4GB
Has thanked: 5 times
Been thanked: 1 time
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by cobric » Fri Oct 25, 2019 9:19 pm

tobetter wrote:
Fri Oct 25, 2019 11:16 am
Are you able to start Android without Petitboot while your SD card is attached?
Yes, Android boots on SD card with boot selector switch to "MMC" without problems.

pete113
Posts: 7
Joined: Tue Oct 22, 2019 2:13 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by pete113 » Sat Oct 26, 2019 12:59 am

cobric wrote:
Fri Oct 25, 2019 5:47 am
pete113 wrote:
Thu Oct 24, 2019 7:22 am
@IgaBiva I tried clean install of all OS'es the same way you did and now it is working. I am able to boot CoreElec from emmc card and Android from sd card in Petitboot. Thank you
Hi!
Did you first time boot them with Petitboot? I tried with other SD card (SanDisk) and it still does not working, even if I leave just SD card without emmc, Android won't boot with Petitboot...
No, I booted them separately first. So I put switch to "MMC", put just emmc in and booted CoreElec. Then I put just sd card in and booted Android. Then I put switch to "SPI", put both emmc and sd card in and I was able to boot both CoreElec and Android via Petitboot. However, if I put switch to "MMC" it is trying to boot CoreElec without success (restarting loop).

cobric
Posts: 13
Joined: Wed Oct 16, 2019 7:19 am
languages_spoken: english
ODROIDs: Odroid N2 4GB
Has thanked: 5 times
Been thanked: 1 time
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by cobric » Sat Oct 26, 2019 4:00 am

pete113 wrote:
Sat Oct 26, 2019 12:59 am
No, I booted them separately first. So I put switch to "MMC", put just emmc in and booted CoreElec. Then I put just sd card in and booted Android. Then I put switch to "SPI", put both emmc and sd card in and I was able to boot both CoreElec and Android via Petitboot. However, if I put switch to "MMC" it is trying to boot CoreElec without success (restarting loop).
Hmm, I think I first booted CoreELEC with Petitboot maybe this is a problem. When I have more time I'll copy current CoreELEC DB and config to external drive and reinstall CoreELEC on emmc because I don't have spare one and don't want to loose all settings and database :) I'll report back then.

P.S. Which versions of CoreELEC/Android?

pete113
Posts: 7
Joined: Tue Oct 22, 2019 2:13 am
languages_spoken: english
ODROIDs: N2
Has thanked: 0
Been thanked: 0
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by pete113 » Sat Oct 26, 2019 5:27 am

cobric wrote:
Sat Oct 26, 2019 4:00 am
pete113 wrote:
Sat Oct 26, 2019 12:59 am
No, I booted them separately first. So I put switch to "MMC", put just emmc in and booted CoreElec. Then I put just sd card in and booted Android. Then I put switch to "SPI", put both emmc and sd card in and I was able to boot both CoreElec and Android via Petitboot. However, if I put switch to "MMC" it is trying to boot CoreElec without success (restarting loop).
Hmm, I think I first booted CoreELEC with Petitboot maybe this is a problem. When I have more time I'll copy current CoreELEC DB and config to external drive and reinstall CoreELEC on emmc because I don't have spare one and don't want to loose all settings and database :) I'll report back then.

P.S. Which versions of CoreELEC/Android?
CoreELEC 9.2.0/Android PIE 64bit(201901018)

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by minoccio » Sat Oct 26, 2019 2:44 pm

My curiosity: I have a full-working petitboot config with Coreelec 9.2.0 on emmc and Android 32 bit on uSD. Is it possible to install a new Android image on uSD leaving the switch on spi and without remove emmc?

istanbulls
Posts: 86
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 27 times
Been thanked: 2 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by istanbulls » Mon Oct 28, 2019 11:36 am

manjaro not working. Is there a setting I need to make?

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Mon Oct 28, 2019 11:39 am

kardanadm wrote:
Mon Oct 28, 2019 11:36 am
manjaro not working. Is there a setting I need to make?
Which version is it? I've tested Manjaro last Friday and it worked.

istanbulls
Posts: 86
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 27 times
Been thanked: 2 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by istanbulls » Mon Oct 28, 2019 11:47 am

Manjaro latest version. Latest version of petitboot

I created a dual-OS memory card for Armbian and Manjaro, petitboot did not work.

The petitboot I have created only Manjaro on the SD card did not work again.

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Mon Oct 28, 2019 12:09 pm

kardanadm wrote:
Mon Oct 28, 2019 11:47 am
Manjaro latest version. Latest version of petitboot

I created a dual-OS memory card for Armbian and Manjaro, petitboot did not work.

The petitboot I have created only Manjaro on the SD card did not work again.
Let me test it again and get back to you later.
These users thanked the author tobetter for the post:
istanbulls (Mon Oct 28, 2019 12:25 pm)

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Mon Oct 28, 2019 11:44 pm

@tobetter: I managed to try out petitboot with my old monitor - I still haven't managed to make it work.
Here is what I tried:

Code: Select all


/ # spimmc.sh 
W: SPI flash memory is accessible.
/ # fw_printenv hdmimode
hdmimode=1024x768
/ # fw_setenv hdmimode 1024x768p60hz
/ # fw_printenv hdmimode
hdmimode=1024x768p60hz

/ # spimmc.sh
W: SPI flash memory is accessible.
/ # fw_printenv hdmimode
hdmimode=1024x768p60hz
/ # fw_setenv hdmimode 640x480@60Hz 
/ # fw_printenv hdmimode
hdmimode=640x480@60Hz


/ # fw_printenv voutmode
## Error: "voutmode" not defined
/ # fw_setenv voutmode dvi
/ # fw_printenv voutmode
voutmode=dvi

After each section I did a reboot and the screen remains in sleep mode. Can I access the script that parses the config to have a look at what it does? On the C2 it used to be somewhere in the initrd. Not sure where I can find it on the N2.
Should /proc/cmdline be reflecting changes to the resolution?

Code: Select all

/ # cat /proc/cmdline
rootfstype=ramfs init=/init console=ttyS0,115200n8 no_console_suspend earlyprintk=aml-uart,0xff803000 ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 console=tty0 quiet logo=osd0,loaded,0x3d800000osd_reverse=0 video_reverse=0 vout=1080p60hz hdmimode=1080p60hz voutmode=dvi modeline=1280,1024,108000,63981,60,1280,1328,1440,1688,1024,1025,1028,1066,0,1,1 customwidth=1280 customheight=1024 spiboot,update=false
I'm currently using the N2 without a SD or emmc attached (just SPI)

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Tue Oct 29, 2019 4:23 am

mad_ady wrote:
Mon Oct 28, 2019 11:44 pm
@tobetter: I managed to try out petitboot with my old monitor - I still haven't managed to make it work.
Here is what I tried:

Code: Select all


/ # spimmc.sh 
W: SPI flash memory is accessible.
/ # fw_printenv hdmimode
hdmimode=1024x768
/ # fw_setenv hdmimode 1024x768p60hz
/ # fw_printenv hdmimode
hdmimode=1024x768p60hz

/ # spimmc.sh
W: SPI flash memory is accessible.
/ # fw_printenv hdmimode
hdmimode=1024x768p60hz
/ # fw_setenv hdmimode 640x480@60Hz 
/ # fw_printenv hdmimode
hdmimode=640x480@60Hz


/ # fw_printenv voutmode
## Error: "voutmode" not defined
/ # fw_setenv voutmode dvi
/ # fw_printenv voutmode
voutmode=dvi

After each section I did a reboot and the screen remains in sleep mode. Can I access the script that parses the config to have a look at what it does? On the C2 it used to be somewhere in the initrd. Not sure where I can find it on the N2.
Should /proc/cmdline be reflecting changes to the resolution?

Code: Select all

/ # cat /proc/cmdline
rootfstype=ramfs init=/init console=ttyS0,115200n8 no_console_suspend earlyprintk=aml-uart,0xff803000 ramoops.pstore_en=1 ramoops.record_size=0x8000 ramoops.console_size=0x4000 console=tty0 quiet logo=osd0,loaded,0x3d800000osd_reverse=0 video_reverse=0 vout=1080p60hz hdmimode=1080p60hz voutmode=dvi modeline=1280,1024,108000,63981,60,1280,1328,1440,1688,1024,1025,1028,1066,0,1,1 customwidth=1280 customheight=1024 spiboot,update=false
I'm currently using the N2 without a SD or emmc attached (just SPI)
Hi, other than Petitboot, are you able to see a picture on your old display with ODROID-N2?
The script that you mentioned in ODROID-C2 is deprecated in ODROID-N2. Instead the same functionality is integrated into kernel driver. I remember that dvi monitor has been tested, can you share edit.bin and display.bin in the first partition in your memory card? FYI, the files are created by U-boot when you set true for autodectect in boot.ini.

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by mad_ady » Tue Oct 29, 2019 5:03 am

Yes, I was able to use the display both with Android and Linux on the N2.
I don't remember if it was using autodetection or not. Also, older petitboot versions worked with it. It broke (for me) when you added improved OS detection this summer. I'll collect the files tomorrow, thanks!

SirZevo
Posts: 3
Joined: Tue Sep 17, 2019 4:17 pm
languages_spoken: English and Spanish
ODROIDs: ODROID-N2
Has thanked: 2 times
Been thanked: 1 time

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by SirZevo » Tue Oct 29, 2019 5:17 am

I just updated to the latest Petiboot v.20191020-rc1 and everything is fine except the Odroid N2 remote isn't working anymore. In earlier versions this was fine (june/july release)

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Tue Oct 29, 2019 7:26 am

SirZevo wrote:
Tue Oct 29, 2019 5:17 am
I just updated to the latest Petiboot v.20191020-rc1 and everything is fine except the Odroid N2 remote isn't working anymore. In earlier versions this was fine (june/july release)
Thanks, I recognize now that the remote support is deprecated by mistake while rebasing the kernel with 4.9.y branch. Sorry about that and it will be fixed in the next release in a week.
Last edited by tobetter on Tue Oct 29, 2019 7:29 am, edited 1 time in total.

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Tue Oct 29, 2019 7:29 am

mad_ady wrote:
Tue Oct 29, 2019 5:03 am
Yes, I was able to use the display both with Android and Linux on the N2.
I don't remember if it was using autodetection or not. Also, older petitboot versions worked with it. It broke (for me) when you added improved OS detection this summer. I'll collect the files tomorrow, thanks!
I kinda know why DVI support is not working since the last improvement for OS detection, somehow the kernel crash happened in HDMI driver after improving OS detection and in order to avoid this, I disabled HPD handler and this causes not to support DVI display mode. Sorry about this, let me look into the kernel crash again if I can fix or enforce to support DVI.
These users thanked the author tobetter for the post (total 2):
rooted (Tue Oct 29, 2019 2:07 pm) • mad_ady (Tue Oct 29, 2019 2:27 pm)

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Tue Oct 29, 2019 5:35 pm

tobetter wrote:
Mon Oct 28, 2019 12:09 pm
kardanadm wrote:
Mon Oct 28, 2019 11:47 am
Manjaro latest version. Latest version of petitboot

I created a dual-OS memory card for Armbian and Manjaro, petitboot did not work.

The petitboot I have created only Manjaro on the SD card did not work again.
Let me test it again and get back to you later.
Is your problem that you do not have any boot entry from the memory card with two OS images? Or any of them failed to boot?

I was not able to have boot entries for CoreELEC and Manjaro after building dual OS image with the script that I made, the reason was that the partition table was not built even though OS images are properly flashed to a memory card. So eventually you must have 4 partitions as below in your memory card, for example, please check how yours is.

Code: Select all

Device     Boot     Start       End Sectors   Size Id Type
/dev/sdb1           62500    500000  437501 213.6M  c W95 FAT32 (LBA)
/dev/sdb2          500001   8882175 8382175     4G 83 Linux
/dev/sdb3       122146792 123195367 1048576   512M  c W95 FAT32 (LBA)
/dev/sdb4       123195368 123260903   65536    32M 83 Linux
Just adding -e to line #34 in my dual OS script solve the partition table issue and I was able to boot both of them from Petitboot. So I've updated the script with the fix, please try it again.
https://dn.odroid.com/S922X/ODROID-N2/S ... compose.sh

istanbulls
Posts: 86
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 27 times
Been thanked: 2 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by istanbulls » Tue Oct 29, 2019 5:46 pm

@tobeeter
Thank you for your help. I'il try as soon as possible.

The single Manjaro I installed on the SD card does not work on petitboot. for your information.

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Tue Oct 29, 2019 5:58 pm

kardanadm wrote:
Tue Oct 29, 2019 5:46 pm
@tobeeter
Thank you for your help. I'il try as soon as possible.

The single Manjaro I installed on the SD card does not work on petitboot. for your information.
Well, I have tested CoreELEC and Manjaro individually and they worked for me.
The image I tried is Manjaro-ARM-xfce-on2-19.08.img, please let me know the link of the image file you tried whenever you know.

istanbulls
Posts: 86
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 27 times
Been thanked: 2 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by istanbulls » Tue Oct 29, 2019 8:42 pm

Manjaro-ARM-KDE-on2-19.08.img
Does that make a difference ?! :)

Thank you again,

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Tue Oct 29, 2019 11:28 pm

kardanadm wrote:
Tue Oct 29, 2019 8:42 pm
Manjaro-ARM-KDE-on2-19.08.img
Does that make a difference ?! :)

Thank you again,
No, it does not make any difference for me.

istanbulls
Posts: 86
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 27 times
Been thanked: 2 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by istanbulls » Tue Oct 29, 2019 11:56 pm

tobetter wrote:
Tue Oct 29, 2019 5:35 pm
tobetter wrote:
Mon Oct 28, 2019 12:09 pm
kardanadm wrote:
Mon Oct 28, 2019 11:47 am
Manjaro latest version. Latest version of petitboot

I created a dual-OS memory card for Armbian and Manjaro, petitboot did not work.

The petitboot I have created only Manjaro on the SD card did not work again.
Let me test it again and get back to you later.
Is your problem that you do not have any boot entry from the memory card with two OS images? Or any of them failed to boot?

I was not able to have boot entries for CoreELEC and Manjaro after building dual OS image with the script that I made, the reason was that the partition table was not built even though OS images are properly flashed to a memory card. So eventually you must have 4 partitions as below in your memory card, for example, please check how yours is.

Code: Select all

Device     Boot     Start       End Sectors   Size Id Type
/dev/sdb1           62500    500000  437501 213.6M  c W95 FAT32 (LBA)
/dev/sdb2          500001   8882175 8382175     4G 83 Linux
/dev/sdb3       122146792 123195367 1048576   512M  c W95 FAT32 (LBA)
/dev/sdb4       123195368 123260903   65536    32M 83 Linux
Just adding -e to line #34 in my dual OS script solve the partition table issue and I was able to boot both of them from Petitboot. So I've updated the script with the fix, please try it again.
https://dn.odroid.com/S922X/ODROID-N2/S ... compose.sh
I have added "-e" as described.
I ran dualos_compose.sh. sd card completed in an hour to write. but there is nothing on the sd card.

https://i.hizliresim.com/4pna1A.png

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Wed Oct 30, 2019 12:51 am

kardanadm wrote:
Tue Oct 29, 2019 11:56 pm
tobetter wrote:
Tue Oct 29, 2019 5:35 pm
tobetter wrote:
Mon Oct 28, 2019 12:09 pm
kardanadm wrote:
Mon Oct 28, 2019 11:47 am
Manjaro latest version. Latest version of petitboot

I created a dual-OS memory card for Armbian and Manjaro, petitboot did not work.

The petitboot I have created only Manjaro on the SD card did not work again.
Let me test it again and get back to you later.
Is your problem that you do not have any boot entry from the memory card with two OS images? Or any of them failed to boot?

I was not able to have boot entries for CoreELEC and Manjaro after building dual OS image with the script that I made, the reason was that the partition table was not built even though OS images are properly flashed to a memory card. So eventually you must have 4 partitions as below in your memory card, for example, please check how yours is.

Code: Select all

Device     Boot     Start       End Sectors   Size Id Type
/dev/sdb1           62500    500000  437501 213.6M  c W95 FAT32 (LBA)
/dev/sdb2          500001   8882175 8382175     4G 83 Linux
/dev/sdb3       122146792 123195367 1048576   512M  c W95 FAT32 (LBA)
/dev/sdb4       123195368 123260903   65536    32M 83 Linux
Just adding -e to line #34 in my dual OS script solve the partition table issue and I was able to boot both of them from Petitboot. So I've updated the script with the fix, please try it again.
https://dn.odroid.com/S922X/ODROID-N2/S ... compose.sh
I have added "-e" as described.
I ran dualos_compose.sh. sd card completed in an hour to write. but there is nothing on the sd card.

https://i.hizliresim.com/4pna1A.png
Are you installing to 32GB eMMC? What's the OS version of your desktop?

istanbulls
Posts: 86
Joined: Tue May 14, 2019 10:18 pm
languages_spoken: Turkish
ODROIDs: ODROID N2
Has thanked: 27 times
Been thanked: 2 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by istanbulls » Wed Oct 30, 2019 1:42 am

32GB SD Card, Ubuntu Mate 18.04.3 LTS 64-Bit

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

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by loznic89 » Wed Oct 30, 2019 5:26 pm

Since run coreelec by petitboot i cant run any image android or ubuntu in petitboot or with "SPI" in eMMC.

Trying with petitboot 05/07 and 20/10

any help?? thanks

User avatar
tobetter
Posts: 4265
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: 59 times
Been thanked: 235 times
Contact:

Re: Petitboot, yet another bootloader based on KEXEC

Unread post by tobetter » Thu Oct 31, 2019 2:02 am

kardanadm wrote:
Wed Oct 30, 2019 1:42 am
32GB SD Card, Ubuntu Mate 18.04.3 LTS 64-Bit
Sorry, I realize that my script has a bug and the script has been updated again so...please try with the new version.
https://dn.odroid.com/S922X/ODROID-N2/S ... compose.sh

The problem is that using echo command to create a partition table and my previous fix was adding -e to echo command. The problem is that -e work for bash but not for dash. I believe your desktop uses dash as a default shell of /bin/sh. So I've added a line to detect if the script runs with bash or not.

Post Reply

Return to “Projects”

Who is online

Users browsing this forum: No registered users and 2 guests