[SOLVED] SPI boot not working

Post Reply
Damian
Posts: 14
Joined: Wed Nov 18, 2020 5:56 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

[SOLVED] SPI boot not working

Post by Damian »

Hi All,

I've used balenaEtcher to write OS images to microSD and put them into my Odroid.

When I switch to SPI, and turn on, I see this ...
Image
Image

But, as soon as I press a button on my keyboard, I get this ...
Image
Image

Any idea what's going on?
Last edited by Damian on Fri Nov 20, 2020 6:46 pm, edited 1 time in total.
Odroid N2+ with CoreELEC

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

Re: SPI boot not working

Post by tobetter »

Before you run OS, you need to update the Petitboot version.
Please remove storage from ODROID-N2 and run pb-update after "Exit to shell" from the Petitboot. When you update, ethernet cable must be attached to access public network.

Damian
Posts: 14
Joined: Wed Nov 18, 2020 5:56 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: SPI boot not working

Post by Damian »

Thanks,
I'll try that as soon as I can.
Odroid N2+ with CoreELEC

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

Re: SPI boot not working

Post by tobetter »

Damian wrote:
Wed Nov 18, 2020 6:48 pm
Thanks,
I'll try that as soon as I can.
Sure, the latest version is 20201112.
viewtopic.php?p=311858#p311858

Damian
Posts: 14
Joined: Wed Nov 18, 2020 5:56 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: SPI boot not working

Post by Damian »

I tried to exit and enter the command.

It returned this ...

Image

Image
Odroid N2+ with CoreELEC

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

Re: SPI boot not working

Post by tobetter »

Did you removed all memory cards?
Did you connect the ethernet cable?

Damian
Posts: 14
Joined: Wed Nov 18, 2020 5:56 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: SPI boot not working

Post by Damian »

Ethernet was definitely connected.

I think that the SD slot was empty, but I can double-check and try again.

Do I need to remove the eMMC? I don't know how to do that.
Odroid N2+ with CoreELEC

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

Re: SPI boot not working

Post by tobetter »

Damian wrote:
Wed Nov 18, 2020 11:39 pm
Ethernet was definitely connected.

I think that the SD slot was empty, but I can double-check and try again.

Do I need to remove the eMMC? I don't know how to do that.
Gently dettach the eMMC from N2 and remove SD as well while updating.
If the ethernet is connected, maybe you tried to run the command before your N2 got IP address. Run udhcpc before pb-update.

Damian
Posts: 14
Joined: Wed Nov 18, 2020 5:56 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: SPI boot not working

Post by Damian »

Taking the eMMC and SD cards out enabled me to update the Petitboot.

It then worked fine for a while.

However, I seem to have a new problem. I don't seem to be able to boot into Petitboot.

With the CoreELEC eMMC back in place, if I have the SPI switch to the right, it boots up CoreELEC from the eMMC - As it should.

However, if I switch the SPI switch to the left, it still boots up CoreELEC from the eMMC. Shouldn't it be booting into Petitboot, to ask me what I want to do? I have tried this with and without an SD card.

Is something wrong, or am I still not understanding how the SPI switch works?

Thanks,
Damian
Odroid N2+ with CoreELEC

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

Re: SPI boot not working

Post by tobetter »

Damian wrote:
Fri Nov 20, 2020 12:20 am
Taking the eMMC and SD cards out enabled me to update the Petitboot.

It then worked fine for a while.

However, I seem to have a new problem. I don't seem to be able to boot into Petitboot.

With the CoreELEC eMMC back in place, if I have the SPI switch to the right, it boots up CoreELEC from the eMMC - As it should.

However, if I switch the SPI switch to the left, it still boots up CoreELEC from the eMMC. Shouldn't it be booting into Petitboot, to ask me what I want to do? I have tried this with and without an SD card.

Is something wrong, or am I still not understanding how the SPI switch works?

Thanks,
Damian
Are you able to boot the SPI flash memory when eMMC and SD card are dettached and SPI boot select switch is at "SPI"?
Have you attached the DC adapter cable again?

Damian
Posts: 14
Joined: Wed Nov 18, 2020 5:56 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: SPI boot not working

Post by Damian »

tobetter wrote:
Fri Nov 20, 2020 12:49 am
Are you able to boot the SPI flash memory when eMMC and SD card are detached and SPI boot select switch is at "SPI"?
Have you attached the DC adapter cable again?
I could definitely boot to Petitboot last night, when the eMMC and SD were both removed.

I'd rather not keep taking the eMMC out! It seems very delicate! Do I really need to unplug it again?

Shouldn't I be able to boot to Petitboot with the eMMC in place?

I have unplugged and replaced the DC adapter many times, as there's obviously no power button on the Odroid N2+.
Odroid N2+ with CoreELEC

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

Re: SPI boot not working

Post by tobetter »

Damian wrote:
Fri Nov 20, 2020 12:55 am
tobetter wrote:
Fri Nov 20, 2020 12:49 am
Are you able to boot the SPI flash memory when eMMC and SD card are detached and SPI boot select switch is at "SPI"?
Have you attached the DC adapter cable again?
I could definitely boot to Petitboot last night, when the eMMC and SD were both removed.

I'd rather not keep taking the eMMC out! It seems very delicate! Do I really need to unplug it again?

Shouldn't I be able to boot to Petitboot with the eMMC in place?

I have unplugged and replaced the DC adapter many times, as there's obviously no power button on the Odroid N2+.
Obviously you do not need to remove the eMMC and SD card at all, but asking to remove them since you are not able to boot to the Petitboot.

Damian
Posts: 14
Joined: Wed Nov 18, 2020 5:56 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: SPI boot not working

Post by Damian »

tobetter wrote:
Fri Nov 20, 2020 1:00 am
Obviously you do not need to remove the eMMC and SD card at all, but asking to remove them since you are not able to boot to the Petitboot.
Shouldn't I be able to do get to Petitboot with the eMMC still in place?

Or does the eMMC need to be removed to reach Petitboot?
Odroid N2+ with CoreELEC

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

Re: SPI boot not working

Post by tobetter »

Damian wrote:
Fri Nov 20, 2020 1:10 am
tobetter wrote:
Fri Nov 20, 2020 1:00 am
Obviously you do not need to remove the eMMC and SD card at all, but asking to remove them since you are not able to boot to the Petitboot.
Shouldn't I be able to do get to Petitboot with the eMMC still in place?

Or does the eMMC need to be removed to reach Petitboot?
As I said, you are not necessary to remove eMMC to boot or update the Petitboot.
But it's normal case and your case is that you are not able to reach the Petitboot.

Damian
Posts: 14
Joined: Wed Nov 18, 2020 5:56 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: SPI boot not working

Post by Damian »

tobetter wrote:
Fri Nov 20, 2020 1:14 am
As I said, you are not necessary to remove eMMC to boot or update the Petitboot.
But it's normal case and your case is that you are not able to reach the Petitboot.
So, if I understand correctly, something is not working properly.

I can not boot to the Petitboot, no matter which position the switch is in.

Is this a hardware problem?
Odroid N2+ with CoreELEC

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

Re: SPI boot not working

Post by tobetter »

Damian wrote:
Fri Nov 20, 2020 1:41 am
tobetter wrote:
Fri Nov 20, 2020 1:14 am
As I said, you are not necessary to remove eMMC to boot or update the Petitboot.
But it's normal case and your case is that you are not able to reach the Petitboot.
So, if I understand correctly, something is not working properly.

I can not boot to the Petitboot, no matter which position the switch is in.
To boot to the Petitboot, the switch must be placed at "SPI" and DC adapter must be powered in at first, then rebooing is not matter.
Is this a hardware problem?
In order to judge if it's hardware problem or not, I am asking something to do and listening from you. Otherwise, I cannot judge.

Refer to the link to try flash whole image to SPI memory as well.
https://wiki.odroid.com/odroid-n2/os_im ... overy_mode

mad_ady
Posts: 8831
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: 586 times
Been thanked: 531 times
Contact:

Re: SPI boot not working

Post by mad_ady »

To clarify further what tobetter is saying - when you change boot switch position you always need to disconnect and reconnect power. Otherwise the old switch state is preserved on soft reboot.
These users thanked the author mad_ady for the post:
jonathon (Sat Nov 21, 2020 3:58 am)

Damian
Posts: 14
Joined: Wed Nov 18, 2020 5:56 pm
languages_spoken: english
Has thanked: 0
Been thanked: 0
Contact:

Re: SPI boot not working

Post by Damian »

Brilliant!

Thanks for clarifying!!

I didn't know that the power had to be actually disconnected and reconnected whenever the switch is switched.

All clear now and working perfectly! :-)

Thanks again tobetter and mad_ady.
Odroid N2+ with CoreELEC

Post Reply

Return to “Issues”

Who is online

Users browsing this forum: No registered users and 2 guests