OPNsense Forum

Archive => 20.7 Legacy Series => Topic started by: hirschferkel on August 04, 2020, 06:15:11 PM

Title: [SOLVED] APU2C4 | kernel: mmc0: Card at relative address 22964 failed to select
Post by: hirschferkel on August 04, 2020, 06:15:11 PM
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
Title: Re: APU2C4 | kernel: mmc0: Card at relative address 22964 failed to select
Post by: 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/
Title: Re: APU2C4 | kernel: mmc0: Card at relative address 22964 failed to select
Post by: hirschferkel on August 05, 2020, 09:29:17 AM
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/
Title: Re: APU2C4 | kernel: mmc0: Card at relative address 22964 failed to select
Post by: 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,
Title: Re: APU2C4 | kernel: mmc0: Card at relative address 22964 failed to select
Post by: 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,
Title: Re: APU2C4 | kernel: mmc0: Card at relative address 22964 failed to select
Post by: hirschferkel on August 05, 2020, 10:20:20 AM
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,
Title: Re: APU2C4 | kernel: mmc0: Card at relative address 22964 failed to select
Post by: hirschferkel on August 05, 2020, 10:24:42 AM
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 (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  (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,
Title: Re: APU2C4 | kernel: mmc0: Card at relative address 22964 failed to select
Post by: Darkopnsense on August 05, 2020, 11:03:54 AM
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."
Title: Re: APU2C4 | kernel: mmc0: Card at relative address 22964 failed to select
Post by: banym on August 05, 2020, 05:42:53 PM
Thank you for sharing. Did it fix the initial problem?
Title: Re: APU2C4 | kernel: mmc0: Card at relative address 22964 failed to select
Post by: dju on August 05, 2020, 06:12:41 PM
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
Title: Re: APU2C4 | kernel: mmc0: Card at relative address 22964 failed to select
Post by: hirschferkel on September 01, 2020, 03:02:34 PM
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.
Title: Re: APU2C4 | kernel: mmc0: Card at relative address 22964 failed to select
Post by: banym on September 01, 2020, 04:30:19 PM
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.