C2 can't reboot

Moderators: odroid, mdrjr

C2 can't reboot

Unread postby jenja_c2 » Sat Dec 17, 2016 7:08 pm

Hi,
C2 cannot seem to complete reboot:
I am booting with a freshly bought 32 GB SanDisk Ultra microSDHC UHS-I card, which I flashed and successfully verified by Win32DiskImager.

Images I used by far were:
Debian-Jessie64-1.0~RC2-2016-03-10-C2.img
ODROBIAN-Jessie-2.0-vanilla-s905.img
ubuntu64-16.04-minimal-odroid-c2-20160815.img

It is headless, no USB devices connected, etc, as yet.
The power is provided via a stable 5V2A microUSB (socket with USB charger, USB cable bought from Hardkernel)

So, the C2 happily boots after a power cycle, but fails to do so when reboot is executed via remote SSH: it just sits with RED led on, BLUE led off until bounced via power reset.
Kinda useless headless box if I have to walk to it each time I want to reboot it...

It looks like to be a common issue with C2, however, I could not find the clear answer whether microSD is to blame (and why, after all???)
Thoughts?
jenja_c2
 
Posts: 34
Joined: Sat Dec 17, 2016 6:53 pm
languages_spoken: english
ODROIDs: Odroid C2

Re: C2 can't reboot

Unread postby odroid » Sun Dec 18, 2016 11:18 am

Please try the latest Mate desktop image and let me know the result.
http://odroid.com/dokuwiki/doku.php?id= ... _note_v2.1

I also heard a few users had a reboot issue with some SD cards.
But we couldn't find a root cause.
User avatar
odroid
Site Admin
 
Posts: 27739
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: C2 can't reboot

Unread postby jenja_c2 » Sun Dec 18, 2016 8:08 pm

Thank you, odroid - I will give it a go, though I am not very hopeful about this.
Basically, the symptoms suggest a hardware issue especially given the number of the already reported issues here, in the forum that follow the pattern:
- power-on boot from microSD is usually successful
- software reset from OS stucks in RED ON, BLUE OFF
- power cycle or microSD re-insert revives the board and completes the boot
- the issue independent of flashed OS image (and latter is verified to have been flashed successfully)
- some microSDs are free of the issue (altough, it is hard to blame a card - it generally works).

Apparently, the microcontroller fails to initilize the card for some reason:
The power-on or card insertion are correctly detected, and the card is put in SPI mode and can accept commands. However, software reset by S905 (if it is issued at all, upon OS reset) leaves the card uninitialized - might be the card irregularity, or issue with S905 firmware.
I will post here how I go with the Ubintu Mate image. Thank you once again
jenja_c2
 
Posts: 34
Joined: Sat Dec 17, 2016 6:53 pm
languages_spoken: english
ODROIDs: Odroid C2

Re: C2 can't reboot

Unread postby jenja_c2 » Sun Dec 18, 2016 9:50 pm

Hi again,
Flashed and successfully verified and booted with ubuntu64-16.04lts-mate-odroid-c2-20161017.img but the board STILL hangs on software reboot. RED remains ON, BLUE is OFF.
The card re-insertion or power-cycle make it boot OK. It look like SPI mode software reset is not honoured (specificall, for high speed mode support)

Can you please share the microSD initialization routine used by the board?
jenja_c2
 
Posts: 34
Joined: Sat Dec 17, 2016 6:53 pm
languages_spoken: english
ODROIDs: Odroid C2

Re: C2 can't reboot

Unread postby odroid » Mon Dec 19, 2016 10:55 am

Thank you for the test.

I've checked a possible way to control the power rails of SD interface.
According to the schematics page 9, there is no way to turn off the TF-IO voltage rail while we can control the TFLAHS_VDD rail.
http://dn.odroid.com/S905/Schematic/odr ... 160226.pdf
So we can't run the power-cycle since TF-IO rails are always on.

We may need to add SD host driver option to disable the UHS mode.
I will check the feasibility.
User avatar
odroid
Site Admin
 
Posts: 27739
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: C2 can't reboot

Unread postby jenja_c2 » Mon Dec 19, 2016 1:56 pm

I appreciate your effors, odroid and Hardkernel team

I have checked those schemantics and SDHC specs for init procedures, as well, before getting to you.
My point was that some cards do not get initialized via standard SPI mode software reset sequence.
IMO, there are ways of doing things here, e.g. to control the power and imitate power-on, or go software way and fix the reset CMD seq to get it to work, and my suspicion, again, is that UHS-I has little to do with the problem (dont believe there is identified pattern of only UHS-I card failing to reboot. Also, C1 with its disableuhs boot option are not free of the reboot issue, are they?).
Amlogic S905 datasheet and Hardkernel description suggest C2 is generally capable of handling UHS-I cards, and it is not a fancy media designed for cameras only, after all.

Bottom line - my guess is that firmware might not be coping well, so the update can do - are there details around SD init procedures by this board?
Altough, I should be happy with any resolution you care to propose.
Meantime, does Hardkernel acknowledge this C2 defect/issue?
jenja_c2
 
Posts: 34
Joined: Sat Dec 17, 2016 6:53 pm
languages_spoken: english
ODROIDs: Odroid C2

Re: C2 can't reboot

Unread postby odroid » Mon Dec 19, 2016 2:44 pm

Do you know well the kernel source tree?
If yes, look into the C2 Kernel source code to improve the SD host controller device driver.
https://github.com/hardkernel/linux/tre ... dc2-3.14.y

99.9% card could run the reset process by issuing the SD card reset command in the reboot process.
But very few cards couldn't accept the reset command to return to the initial 3.3Volt SDHC mode from the 1.8Volt UHS mode.
User avatar
odroid
Site Admin
 
Posts: 27739
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: C2 can't reboot

Unread postby jenja_c2 » Mon Dec 19, 2016 5:45 pm

I will see what I can do with this
Please do the same
For an end consumer, it might be easier just to return the broad, but I am not that tempted as yet, and hope to get to the bottom of that

thank you
jenja_c2
 
Posts: 34
Joined: Sat Dec 17, 2016 6:53 pm
languages_spoken: english
ODROIDs: Odroid C2

Re: C2 can't reboot

Unread postby arnie » Mon Dec 19, 2016 6:13 pm

Was the unattended software upgrade still running when you powered the C2 off (or rebooted)? I also had this problem and it went away when I waited for this process to end. To check when this process has finished, you can just run 'top' in a terminal. It takes a lot of CPU so it shows up at the top and you'll notice immediately when it is finished. You can reboot then.
arnie
 
Posts: 3
Joined: Mon Nov 21, 2016 10:10 pm
languages_spoken: english

Re: C2 can't reboot

Unread postby linuxest » Mon Dec 19, 2016 6:17 pm

If you have a usb-uart cable, it is really helpful for debugging the reboot process.
linuxest
 
Posts: 41
Joined: Tue Nov 08, 2016 6:35 pm
languages_spoken: english
ODROIDs: 1 x HC1 and 2 x C2s with HiFi-Shield 2
And some RPi3 boards

Re: C2 can't reboot

Unread postby jenja_c2 » Mon Dec 19, 2016 8:57 pm

Thanks Guys,
In my case, soft reboot did not complete after the 1st power-on and partition resize - so I doubt any background update was involved.
I'd get the uart kit, if decided to invest more into this.

Waiting for good news from Hardkernel, and trying other things...
jenja_c2
 
Posts: 34
Joined: Sat Dec 17, 2016 6:53 pm
languages_spoken: english
ODROIDs: Odroid C2

Re: C2 can't reboot

Unread postby jenja_c2 » Mon Dec 26, 2016 5:22 pm

Hi Hardkernel folks,
are there update or ETA?

thank you
jenja_c2
 
Posts: 34
Joined: Sat Dec 17, 2016 6:53 pm
languages_spoken: english
ODROIDs: Odroid C2

Re: C2 can't reboot

Unread postby odroid » Mon Dec 26, 2016 7:24 pm

Not yet,
You may need to wait 1~2 weeks due to holidays.
User avatar
odroid
Site Admin
 
Posts: 27739
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: C2 can't reboot

Unread postby mad_ady » Mon Dec 26, 2016 8:45 pm

Not sure if it helps, but occasionally my C2s (running emmc) fail to reboot on the reboot command. They go into shutdown instead. However the following worked everytime:
Code: Select all
sync
reboot -f
User avatar
mad_ady
 
Posts: 3655
Joined: Wed Jul 15, 2015 5:00 pm
Location: Bucharest, Romania
languages_spoken: english
ODROIDs: XU4, C1+, C2

Re: C2 can't reboot

Unread postby jenja_c2 » Thu Dec 29, 2016 9:29 pm

thanks mad_ady - tried and confirmed NO good - however, it was a good point.
What I am speculating is (no uart, sorry),
+ OS uses the old good reboot.c or shutdown.c (from kernel sources - and I can't see it was forked or redone by Hardkernel for C2, etc). E.g.: http://lxr.free-electrons.com/source/ke ... t.c?v=3.14
+ reboot tries to umount FSes (this can result in the failure to reboot you described), kills the procs, then sends a magic number to kernl via system call
+ No ACPI, so the kernel does its magic to reset the machine
+ now, S905 firmware comes to play - either on shutting down the hardware or booting up - the odroid's post here (viewtopic.php?f=141&t=22314) mentions that BL30 stage hung - it seems to be a non-open code, specific to S905 or the board implementation - comes pre-built, can't look inside it, unfortunately.

Finally, S905 docs (http://openlinux.amlogic.com/@api/deki/ ... e_v0.1.pdf) suggested the SDHC controller only supports SD mode (and not SPI).
I feel it may require a firmware reflash - it is good to get the Hardkernel comments, and perhaps, check other S905 implementation for similar issues (or absense of them).
It'll be awesome to help overcome this problem. Keep knocking, anyway
Thanks, all
jenja_c2
 
Posts: 34
Joined: Sat Dec 17, 2016 6:53 pm
languages_spoken: english
ODROIDs: Odroid C2

Re: C2 can't reboot

Unread postby lonewaft » Sat Dec 31, 2016 8:48 am

I've got the same issue, but it only happens when I have my external HDD plugged in. I am also issuing the reboot command through SSH.

External HDD -- Powered Hub -- C2 -- Ethernet -- Network -- SSH (FAIL reboot)

USB Drive -- C2 -- Ethernet -- Network -- SSH (OK reboot)
lonewaft
 
Posts: 1
Joined: Sat Dec 31, 2016 8:44 am
languages_spoken: english
ODROIDs: C2

Re: C2 can't reboot

Unread postby rooted » Sat Dec 31, 2016 10:06 am

lonewaft wrote:I've got the same issue, but it only happens when I have my external HDD plugged in. I am also issuing the reboot command through SSH.

External HDD -- Powered Hub -- C2 -- Ethernet -- Network -- SSH (FAIL reboot)

USB Drive -- C2 -- Ethernet -- Network -- SSH (OK reboot)

Did you try what was suggested above?

sync reboot -f
User avatar
rooted
 
Posts: 4717
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: C2 can't reboot

Unread postby shawwwn » Mon Jan 02, 2017 9:01 am

I just bought a C2 to use it headlessly and have been plagued by the reboot problem.
The board will be able to reboot following a fresh power-up/reboot, but won't reboot anymore if you leave it running for couple hours.

The same problem happens on all of my Class 10/UHS-I cards so card corruption won't likely to be an issue.
I suspect the problem has something to do with the uboot where the sd card is initialized. Something in the uboot is preventing UHS-I mode of a dual-mode sd card from being brought up.

Maybe using a Class 10 only card will be able to solve this problem?
shawwwn
 
Posts: 15
Joined: Mon Jan 02, 2017 8:29 am
languages_spoken: english
ODROIDs: C2

Re: C2 can't reboot

Unread postby jenja_c2 » Mon Jan 02, 2017 11:06 am

shawwwn,
it is not exactly a reply you are after - we are in the same boat (if you have read my comments above).
Uboot is meant to kick in after the board power-cycle, and it apparently works. OS reboot wont - I may suspect the issue happens before uboot, but uart log is required to support this belief.
class10, perhaps, can be a solution - but why? The board claims to support UHS-I, this looks a good alternative to a dearer eMMC by far
jenja_c2
 
Posts: 34
Joined: Sat Dec 17, 2016 6:53 pm
languages_spoken: english
ODROIDs: Odroid C2

Re: C2 can't reboot

Unread postby shawwwn » Tue Jan 03, 2017 7:32 am

I'm glad that you came up with something. I'm connecting a uart cable to test.

I will upload the boot log as soon as it is done. Do expect it to take couple hours for the reboot problem to surface.
shawwwn
 
Posts: 15
Joined: Mon Jan 02, 2017 8:29 am
languages_spoken: english
ODROIDs: C2

Re: C2 can't reboot

Unread postby brad » Tue Jan 03, 2017 8:52 am

jenja_c2 wrote:shawwwn,
it is not exactly a reply you are after - we are in the same boat (if you have read my comments above).
Uboot is meant to kick in after the board power-cycle, and it apparently works. OS reboot wont - I may suspect the issue happens before uboot, but uart log is required to support this belief.
class10, perhaps, can be a solution - but why? The board claims to support UHS-I, this looks a good alternative to a dearer eMMC by far


I have encountered the issue booting with a filesystem mounted over NFS, with no local filesystems mounted on the C2. In saying this it does not seem to occur if the board was booted from the emmc so I do believe it is an issue with the sdcard driver as it occurs when booting via sdcard (or the working emmc card in sd adaptor)

I have attempted to reproduce the issue within U-boot itself with no luck, directly from u-boot it always reboots fine and there is nothing odd in the UART console.

Monitoring the UART console on linux reboot, it appears that the linux kernel performs the shutdown and requests the board to reboot but there nothing in the UART logs but a warning that the watchdog could not be stopped but im unsure if this is related. (according to others on the forum probably not)

I can confirm that this issue exists on all versions of Linux kernel 3.14.y & 4.9.x and various versions of u-boot including hard-kernel and Denx version with emmc patch.

I suspect the issue will likely be within arm trusted firmware for the S905 (Bootloader BL2 I believe) but I should compile u-boot with debug to see if I can find out more and try to reproduce.
brad
 
Posts: 686
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2

Re: C2 can't reboot

Unread postby shawwwn » Tue Jan 03, 2017 9:21 am

Here is the uart log following an unsuccessful reboot.

Monitoring the UART console on linux reboot, it appears that the linux kernel performs the shutdown and requests the board to reboot but there nothing in the UART logs but a warning that the watchdog could not be stopped but im unsure if this is related. (according to others on the forum probably not)


The log ends at "reboot: Restarting system," I guess that pretty much confirms your suspicion.
Attachments
boot_unsuccessful.log
unsuccessful reboot log
(1.55 KiB) Downloaded 93 times
shawwwn
 
Posts: 15
Joined: Mon Jan 02, 2017 8:29 am
languages_spoken: english
ODROIDs: C2

Re: C2 can't reboot

Unread postby crashoverride » Tue Jan 03, 2017 9:45 am

lonewaft wrote:External HDD -- Powered Hub -- C2 -- Ethernet -- Network -- SSH (FAIL reboot)

USB Drive -- C2 -- Ethernet -- Network -- SSH (OK reboot)

My guess would be that the hub is "back powering" into the board affecting reset.

brad wrote:I suspect the issue will likely be within arm trusted firmware for the S905

According to the SD Card spec here:
https://members.sdcard.org/downloads/pl ... t1_410.pdf
p 17
Once the card enters 1.8V signaling mode, the card cannot be switched to SPI mode or 3.3V signaling without power cycle.


If the card is "soft" reset before reboot by the OS but does not enter 3.3V mode, then it will continue expecting 1.8V communication. Meanwhile, the bootloader is likely expecting 3.3V default operation. The workarounds are:
* disable UHS operation for cards that don't change voltage on "soft" reset.
* use a SD cards that is known to work after "soft" reset.
* hardware mod the SD card slot to allow switching its power on/off.
crashoverride
 
Posts: 3468
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: C2 can't reboot

Unread postby shawwwn » Tue Jan 03, 2017 9:52 am

Upon researching the forum, I found that the C1 once had a similar reboot issue. HK's fix was to provide an option to disable UHS mode in boot.ini
viewtopic.php?f=117&t=12063

But then again, the board is no longer a UHS-I compatible board as advertised.
shawwwn
 
Posts: 15
Joined: Mon Jan 02, 2017 8:29 am
languages_spoken: english
ODROIDs: C2

Re: C2 can't reboot

Unread postby crashoverride » Tue Jan 03, 2017 10:11 am

shawwwn wrote:Here is the uart log following an unsuccessful reboot.

What is interesting about that log is the warning before the end
Code: Select all
[ 3638.276892] [aml_sd_voltage_switch] switch to 1.8V for a non-uhs device.


Which comes from here:
https://github.com/hardkernel/linux/blo ... sd.c#L1271

Indicating that the SD Card is not a UHS card, but the voltage is switched to 1.8V anyway.

[edit]
I dont have any SD cards that exhibit the reboot problem so I am unable to test possible workarounds. Someone may want to try not changing the SD voltage in that condition and see if it affects operation.
crashoverride
 
Posts: 3468
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: C2 can't reboot

Unread postby brad » Tue Jan 03, 2017 10:30 am

crashoverride wrote:I dont have any SD cards that exhibit the reboot problem so I am unable to test possible workarounds. Someone may want to try not changing the SD voltage in that condition and see if it affects operation.


Im going to try and reproduce now using some different sdcards and the emmc/ adaptor and will try the workaround if I hit the issue. It has been bugging me for some time in various configurations and I would love to get to the bottom of it. Thanks for your input :)
brad
 
Posts: 686
Joined: Tue Mar 29, 2016 1:22 pm
Location: Australia
languages_spoken: english
ODROIDs: C2

Re: C2 can't reboot

Unread postby shawwwn » Tue Jan 03, 2017 10:42 am

Indicating that the SD Card is not a UHS card, but the voltage is switched to 1.8V anyway.


The card I used was this one,
https://www.amazon.com/gp/product/B00M55C0VU

I thought it had UHS-I mode, maybe I was wrong...
shawwwn
 
Posts: 15
Joined: Mon Jan 02, 2017 8:29 am
languages_spoken: english
ODROIDs: C2

Re: C2 can't reboot

Unread postby crashoverride » Tue Jan 03, 2017 11:13 am

shawwwn wrote:I thought it had UHS-I mode

It likely is UHS capable. There are currently too many variables to say conclusively what the state of operation is. Its odd that there are no additional messages after the last one in the log. The board may be stuck in Linux rather than the bootloader.
crashoverride
 
Posts: 3468
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: C2 can't reboot

Unread postby odroid » Tue Jan 03, 2017 11:46 am

Update the kernel and boot.ini via "sudo apt update && sudo apt upgrade && sudo apt dist-upgrade".
And power cycling with shutdown, you will have '-97' kernel.
Edit your updated boot.ini to disable the UHS option. setenv disableuhs "true"
https://github.com/mdrjr/c2_bootini/blo ... t.ini#L113
Turn your board off and run again and test the reboot and let me know the result.
User avatar
odroid
Site Admin
 
Posts: 27739
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: C2 can't reboot

Unread postby shawwwn » Tue Jan 03, 2017 12:33 pm

Didn't seem to get the update. I'm using the Debian jessie image on the forum with a kernel version of
Linux C2 3.14.79+ #1 SMP PREEMPT Thu Dec 15 13:09:19 CET 2016 aarch64 GNU/Linux
viewtopic.php?f=138&t=19403
shawwwn
 
Posts: 15
Joined: Mon Jan 02, 2017 8:29 am
languages_spoken: english
ODROIDs: C2

Re: C2 can't reboot

Unread postby odroid » Tue Jan 03, 2017 1:08 pm

Wait a few more days. Debian maintainer(meveric) will merge the changes.
User avatar
odroid
Site Admin
 
Posts: 27739
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: C2 can't reboot

Unread postby jenja_c2 » Tue Jan 03, 2017 1:24 pm

Hi,
Does it mean that Hardkernel wants to void the UHS-I support?
jenja_c2
 
Posts: 34
Joined: Sat Dec 17, 2016 6:53 pm
languages_spoken: english
ODROIDs: Odroid C2

Re: C2 can't reboot

Unread postby jenja_c2 » Tue Jan 03, 2017 1:33 pm

Thanks crashoverride
crashoverride wrote:
Once the card enters 1.8V signaling mode, the card cannot be switched to SPI mode or 3.3V signaling without power cycle.

If the card is "soft" reset before reboot by the OS but does not enter 3.3V mode, then it will continue expecting 1.8V communication. Meanwhile, the bootloader is likely expecting 3.3V default operation. The workarounds are:
* disable UHS operation for cards that don't change voltage on "soft" reset.
* use a SD cards that is known to work after "soft" reset.
* hardware mod the SD card slot to allow switching its power on/off.


Does it make sense? S905 docs (http://openlinux.amlogic.com/@api/deki/ ... e_v0.1.pdf) suggests their SDHC controller only supports SD mode (and not SPI).
jenja_c2
 
Posts: 34
Joined: Sat Dec 17, 2016 6:53 pm
languages_spoken: english
ODROIDs: Odroid C2

Re: C2 can't reboot

Unread postby rooted » Tue Jan 03, 2017 3:18 pm

jenja_c2 wrote:Hi,
Does it mean that Hardkernel wants to void the UHS-I support?

Why would it void the support, the device still is UHS capable..just not with some cards.

What does that mean, void the support?
User avatar
rooted
 
Posts: 4717
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: C2 can't reboot

Unread postby odroid » Tue Jan 03, 2017 3:28 pm

jenja_c2 wrote:Hi,
Does it mean that Hardkernel wants to void the UHS-I support?


Nope.
We've tested many different UHS-1 cards and the reboot works well with all of them.
Look at my desk. Click this picture.
sdcards.png
(1018.63 KiB) Downloaded 2073 times


We just don't know why your SD card controller doesn't accept the SD standard reset command.
User avatar
odroid
Site Admin
 
Posts: 27739
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: C2 can't reboot

Unread postby shawwwn » Tue Jan 03, 2017 4:09 pm

We've tested many different UHS-1 cards and the reboot works well with all of them.
Look at my desk. Click this picture.


Have you waited a few hours before performing a soft reboot? The strange thing is my board reboots fine following a new boot/reboot, but won't reboot if I let it run for a while.


I'm compiling the 3.14.y kernel from commit "odroid-c2:usb: fix usb doggle compatibility" (bb03f741fb67c7aebc59ecc7a54adbbf0309b7aa) and will let you guys know if it works.
shawwwn
 
Posts: 15
Joined: Mon Jan 02, 2017 8:29 am
languages_spoken: english
ODROIDs: C2

Re: C2 can't reboot

Unread postby odroid » Tue Jan 03, 2017 4:45 pm

The "disableuhs" commit was reverted because it blocked the eMMC booting.
viewtopic.php?f=136&t=25279
We are working on it now.
User avatar
odroid
Site Admin
 
Posts: 27739
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: C2 can't reboot

Unread postby jenja_c2 » Tue Jan 03, 2017 7:49 pm

rooted wrote:
jenja_c2 wrote:Hi,
Does it mean that Hardkernel wants to void the UHS-I support?

Why would it void the support, the device still is UHS capable..just not with some cards.

What does that mean, void the support?

Thanks, and never mind. I just wanted to confirm whether the board C2 with option disableuhs as a workaround is still considered to support UHS-I.
To save disucssions, a list of compatible cards would do, or an explanation as to what can go wrong with specific cards - so it all can be brought to the card manufacturer
jenja_c2
 
Posts: 34
Joined: Sat Dec 17, 2016 6:53 pm
languages_spoken: english
ODROIDs: Odroid C2

Re: C2 can't reboot

Unread postby jenja_c2 » Tue Jan 03, 2017 7:54 pm

odroid wrote:
jenja_c2 wrote:Hi,
Does it mean that Hardkernel wants to void the UHS-I support?


Nope.
We've tested many different UHS-1 cards and the reboot works well with all of them.
Look at my desk. Click this picture.
sdcards.png

Mine is https://www.wireless1.com.au/sandisk-32gb-ultra-class-10-u1-microsd-with-adapter-80mb-s?gclid=CNfVpIrlpdECFZUsvQodXQcG7w, and I can't blame it as yet.

odroid wrote:We just don't know why your SD card controller doesn't accept the SD standard reset command.
I thought the SDHC controller is a part of the C2 board, so why is it mine?
jenja_c2
 
Posts: 34
Joined: Sat Dec 17, 2016 6:53 pm
languages_spoken: english
ODROIDs: Odroid C2

Re: C2 can't reboot

Unread postby odroid » Tue Jan 03, 2017 8:04 pm

I meant an internal controller in SD card.

We have a thread to make a list of working/nonworking SD cards.
viewtopic.php?f=139&t=22170

Anyway, if your reboot issue is not related to the UHS interface, we might need to look into the strace of reboot process.
Which USB devices do you use on C2?
User avatar
odroid
Site Admin
 
Posts: 27739
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Re: C2 can't reboot

Unread postby shawwwn » Tue Jan 03, 2017 8:34 pm

Compiling kernel with "disableuhs," no avail; compiling kernel to not change sd voltage to 1.8V, no avail.
I'm stuck.
shawwwn
 
Posts: 15
Joined: Mon Jan 02, 2017 8:29 am
languages_spoken: english
ODROIDs: C2

Re: C2 can't reboot

Unread postby relima » Wed Jan 04, 2017 1:26 am

I am also on the same boat. My sd card is a 32gb sandisk class 10.
relima
 
Posts: 2
Joined: Thu Dec 15, 2016 4:33 am
languages_spoken: english
ODROIDs: ODROID C2

Re: C2 can't reboot

Unread postby crashoverride » Wed Jan 04, 2017 2:42 am

shawwwn wrote:I'm stuck.

It would be helpful to know where the board gets stuck. Is it linux, ROM, BLn, Uboot? A comparison of the serial console output from a good reboot to compare against a stuck reboot would be helpful. I know that when ROM attempts a boot, there is diagnostic information output. Since this was not seen in the stuck boot log, it was either omitted or the reboot process gets stuck before that. If its stuck anywhere except ROM, there is hope for a workaround/patch.
crashoverride
 
Posts: 3468
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: C2 can't reboot

Unread postby shawwwn » Wed Jan 04, 2017 7:14 am

It would be helpful to know where the board gets stuck. Is it linux, ROM, BLn, Uboot? A comparison of the serial console output from a good reboot to compare against a stuck reboot would be helpful. I know that when ROM attempts a boot, there is diagnostic information output. Since this was not seen in the stuck boot log, it was either omitted or the reboot process gets stuck before that. If its stuck anywhere except ROM, there is hope for a workaround/patch.


Here is the uart log from a successful reboot. I couldn't find the text "PSCI Affinity Map:" in the kernel source code so it must have come from somewhere else. As weird as it may seem, "PSCI Affinity Map:" should be a part of the shutdown procedure. Everytime C2 fails to reboot, it couldn't complete a shutdown.
Attachments
boot.log
(44.63 KiB) Downloaded 87 times
shawwwn
 
Posts: 15
Joined: Mon Jan 02, 2017 8:29 am
languages_spoken: english
ODROIDs: C2

Re: C2 can't reboot

Unread postby crashoverride » Wed Jan 04, 2017 7:28 am

shawwwn wrote:Here is the uart log from a successful reboot.

That is interesting!
Code: Select all
[  333.877536] systemd-shutdown[1]: Rebooting.
[  333.879389] [aml_sd_voltage_switch] switch to 1.8V for a non-uhs device.

[  334.544024] reboot: Restarting system
INFO:    PSCI Affinity Map:
INFO:      AffInst: Level 0, MPID 0x0, State ON
INFO:      AffInst: Level 0, MPID 0x1, State ON
INFO:      AffInst: Level 0, MPID 0x2, State ON
INFO:      AffInst: Level 0, MPID 0x3, State ON
bl31 rebïGXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:800;NAND:81;SD:0;READ:0;CHK:0;


The ROM code starts at
Code: Select all
GXBB:BL1:08dafd:0a8993;FEAT:EDFC318C;POC:3;RCY:0;EMMC:800;NAND:81;SD:0;READ:0;CHK:0;


This implies the fault is either leaving Linux or returning to BL31. My initial guess would be Linux is still waiting for some condition before transferring control back to BL31 and so the system is stuck in Linux.
crashoverride
 
Posts: 3468
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: C2 can't reboot

Unread postby rooted » Wed Jan 04, 2017 7:39 am

If it were Linux issuing 'reboot -f' should work.
User avatar
rooted
 
Posts: 4717
Joined: Fri Dec 19, 2014 9:12 am
Location: Gulf of Mexico, US
languages_spoken: english
ODROIDs: C1, C1+, C2
XU3 Lite, XU4
N1
VU7+
HiFi Shield 2
Smart Power (original)

Re: C2 can't reboot

Unread postby shawwwn » Wed Jan 04, 2017 7:53 am

"reboot -f" won't work, ends at
Code: Select all
reboot: Restarting system
shawwwn
 
Posts: 15
Joined: Mon Jan 02, 2017 8:29 am
languages_spoken: english
ODROIDs: C2

Re: C2 can't reboot

Unread postby crashoverride » Wed Jan 04, 2017 8:07 am

The best I can trace this out is:

The last message seen:
https://github.com/hardkernel/linux/blo ... oot.c#L139

Need to see if this ever completes:
https://github.com/hardkernel/linux/blo ... ess.c#L138

Need to see if this is ever called:
https://github.com/hardkernel/linux/blo ... off.c#L141

Someone will need to add some "printk" before and after calls to determine if the machine ever makes it back to BL31 (the last code linked above).
crashoverride
 
Posts: 3468
Joined: Tue Dec 30, 2014 8:42 pm
languages_spoken: english
ODROIDs: C1

Re: C2 can't reboot

Unread postby jenja_c2 » Wed Jan 04, 2017 12:22 pm

odroid wrote:I meant an internal controller in SD card.

We have a thread to make a list of working/nonworking SD cards.
viewtopic.php?f=139&t=22170

Anyway, if your reboot issue is not related to the UHS interface, we might need to look into the strace of reboot process.
Which USB devices do you use on C2?

Thank you, odroid.
Ironically, I referred to this thread selecting the card, and here it was:
viewtopic.php?f=139&t=22170#p150174

I tried with and without attached USB devices - it seemed to make no difference - currently, I have got a Kingston 2Gb memory stick connected to one of the 4 USB ports.
My power supply combinations were:
+ 5V/2A via microUSB
+ 5V/2A soldered to the alternative power supply port
+ both above.

Just recently, I managed to connect two Toshiba 2TB USB2.0/3.0 external HDDs via remaining USB ports (works only with the both power supplies. though).
Throughout this journey, I have always had issues with rebooting the board from OS.
jenja_c2
 
Posts: 34
Joined: Sat Dec 17, 2016 6:53 pm
languages_spoken: english
ODROIDs: Odroid C2

Re: C2 can't reboot

Unread postby odroid » Wed Jan 04, 2017 12:29 pm

Oh! You have a UART console :)
After quick reviewing your log file, your reboot issue is not related to the SD controller probably.
Can you show us a log from a failed reboot? Is there any WDT or Watch-dog-timer stuff?
User avatar
odroid
Site Admin
 
Posts: 27739
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID

Next

Return to Issues

Who is online

Users browsing this forum: No registered users and 2 guests