[SOLVED] APU2C4 | kernel: mmc0: Card at relative address 22964 failed to select

Started by hirschferkel, August 04, 2020, 06:15:11 PM

Previous topic - Next topic
Hi there,

after upgrading to 20.7 I get this error queue. Any idea how to fix it?
CPU-Typ AMD GX-412TC SOC (4 cores)
APU2C4

20.1 is running without any problems.

Best, hirschferkel

2020-08-04T18:13:01 kernel: mmc0: Card at relative address 22964 failed to select
2020-08-04T18:13:01 kernel: mmc0: Card at relative address 22964 failed to select
2020-08-04T18:13:01 kernel: mmc0: CMD7 failed, RESULT: 1
2020-08-04T18:13:01 kernel: mmc0: Card at relative address 22964 failed to select
2020-08-04T18:13:01 kernel: mmc0: CMD7 failed, RESULT: 1
2020-08-04T18:13:01 kernel: mmc0: Card at relative address 22964 failed to select
2020-08-04T18:13:01 kernel: mmc0: CMD7 failed, RESULT: 1
2020-08-04T18:13:01 kernel: mmc0: Card at relative address 22964 failed to select
2020-08-04T18:13:01 kernel: mmc0: CMD7 failed, RESULT: 1
2020-08-04T18:13:01 kernel: mmc0: Card at relative address 22964 failed to select
2020-08-04T18:13:01 kernel: mmc0: CMD7 failed, RESULT: 1
2020-08-04T18:12:58 kernel: mmc0: Card at relative address 22964 failed to select
2020-08-04T18:12:58 kernel: mmc0: CMD7 failed, RESULT: 1
2020-08-04T18:12:58 kernel: mmc0: Card at relative address 22964 failed to select
2020-08-04T18:12:58 kernel: mmc0: CMD7 failed, RESULT: 1
2020-08-04T18:12:45 kernel: mmc0: Card at relative address 22964 failed to select
2020-08-04T18:12:45 kernel: mmc0: CMD7 failed, RESULT: 1
2020-08-04T18:12:32 kernel: mmc0: Card at relative address 22964 failed to select
2020-08-04T18:12:32 kernel: mmc0: CMD7 failed, RESULT: 1
2020-08-04T18:12:32 kernel: mmc0: Card at relative address 22964 failed to select
2020-08-04T18:12:32 kernel: mmc0: CMD7 failed, RESULT: 1

I don't know. Are you running the latest BIOS? If not, maybe an update will help.
https://pcengines.github.io/

I read about that, but I'm not sure if this really deals with that error, as 20.1 is running smoothly?

Actually do not know how to update a bios anyhow?
I am glad that I am able to update OPNsense via a nano image on a flash card. But I do not have any clue how to update a bios? Is there any help available on that?
All the best, hirschferkel

Quote from: senser on August 04, 2020, 10:00:52 PM
I don't know. Are you running the latest BIOS? If not, maybe an update will help.
https://pcengines.github.io/

Hello,

To update the bios of an APU 2 method:
1)
Using PUTTY
Download ROM file
Install the ROM file with the FLASHROM command
2)
Using a USB key with TINYCORE

With some research you will get there.

Regards,
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

Hello,

In my experience your Msata disk is defective.
I have already had the case.
Either you change the disk, or you do a new installation by reformatting (pending the death of your disk)

Regards,
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).

I use SD card... or did I not get your answer right?

Quote from: Darkopnsense on August 05, 2020, 10:04:45 AM
Hello,

In my experience your Msata disk is defective.
I have already had the case.
Either you change the disk, or you do a new installation by reformatting (pending the death of your disk)

Regards,

And how would I access the USB stick with Tinycore? I found some help to somehow create the USB stick at pcengines:
https://pcengines.ch/tmp/Make-tinyCore-memstick-on-FreeBSD.pdf

But I guess there would not be any GUI available?
Have no idea how to proceed when this USB stick would be prepared?...

To build a "firmware" I found that github page, but that looks chinese to me:
https://github.com/pcengines/apu2-documentation#building-firmware-using-apu2-image-builder

Quote from: Darkopnsense on August 05, 2020, 09:59:33 AM
Hello,

To update the bios of an APU 2 method:
1)
Using PUTTY
Download ROM file
Install the ROM file with the FLASHROM command
2)
Using a USB key with TINYCORE

With some research you will get there.

Regards,

Hello,

I just updated my APU3A2 with the TINYCORE method on a USB key.

APU off
Once your TINYCORE key has been created, insert the tinycore key on the upper USB port
Connect an APU serial cable from the apu to your pc
Start PUTTY
Power up your APU
Follow the instructions in PUTTY

Switch off APU
Remove the TINYCORE key
Re-power up your APU

Regards,

NB: I wasted hours looking. Follow this track "APUs are managed with PUTTY in serial or SSH mode."
Depuis 2017
X7SPA-HF, Intel(R) ATOM(TM) D525, 4Go RAM, 120Go, 2 Lan 24.1.2_1
APU4c, 4Go RAM, 120Go, 4 Lan 24.1.10_8
APU3a, 2Go RAM, 60Go, 3 Lan 24.1.2_1
APU2c, 2Go RAM, 60Go, 3 Lan 23.7.1_3
BIOS A JOUR (v4.19.0.1).


working fine from opnsense with internet connection and choosing the good binaries bios (https://pcengines.github.io/)

for my  apu2c3 :
#pkg install flashrom
#curl https://3mdeb.com/open-source-firmware/pcengines/apu2/apu2_v4.12.0.3.rom --output coreboot.rom
#flashrom -w coreboot.rom -p internal:boardmismatch=force

--
regards,
julien

It was a little bit laborious and time consuming, but after some failures, the bios of the APU2 was updated and OPNsense is running smooth again.

First of all you can't use the windows installer of PC Engines for APU2 which does not run TinyCore 6.4. So after running the installer you have to replace several files on the USB-stick and finally add a different bios version. If you do these steps, it should work.

Thank you for the follow up. Maybe you could mark the thread as solved to help others to find working solutions. Thank you and have fun with your opnsense.
Twitter: banym
Mastodon: banym@bsd.network
Blog: https://www.banym.de