BPI-Router-Linux icon indicating copy to clipboard operation
BPI-Router-Linux copied to clipboard

SD-Card not found!

Open usermigallon opened this issue 2 years ago • 51 comments

Hi, I have this "SD-Card not found!"

usermigallon avatar Dec 22 '21 09:12 usermigallon

can you please a bit more exactly? where did you get the error? on building/install or on running the kernel?

i guess while try to install via my build.sh

which operating system do you use? is BPI-BOOT/BPI-ROOT mounted to /media/$USER/? this is what the script checks

frank-w avatar Dec 22 '21 09:12 frank-w

I use Ubuntu 20.04, media /dev/sde ./build.sh importconfig ./build.sh config ./build.sh I choose 2

  1. pack
  2. install to SD-Card
  3. deb-package
  4. upload choice [1234]:2 Install Kernel to SD Card generate branch vars... getting git branch:
  • 5.4-main kernbranch:5.4-main,gitbranch:-main uImage-filename: uImage_5.4.150-main /dev/sde Name: uImage_5.4.150-main /dev/sde Press [enter] to copy data to SD-Card... SD-Card not found!

usermigallon avatar Dec 22 '21 10:12 usermigallon

do you try to install to usb-stick/ssd/hdd?

build.sh uses /media/$USER/BPI-BOOT / BPI_ROOT to install, if your mountpoint differs to it you have to change occourances of this mountpoint with yours

frank-w avatar Dec 22 '21 10:12 frank-w

I have not install usb-stick/ssd/hdd

usermigallon avatar Dec 22 '21 10:12 usermigallon

(where) is your sdcard mounted?

frank-w avatar Dec 22 '21 10:12 frank-w

/media/user/7F3D-3FFE or /dev/sde

usermigallon avatar Dec 22 '21 10:12 usermigallon

OK, /media/user/7F3D-3FFE is your mountpoint, i guess because you miss the label in filesystem.

do you build for r2 or r64 (new bootchain)?

please show output of

mount | grep /dev/sde fdisk -l /dev/sde

frank-w avatar Dec 22 '21 10:12 frank-w

mount | grep /dev/sde /dev/sde1 on /media/resu/7F3D-3FFE type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,flush,errors=remount-ro,uhelper=udisks2)

sudo fdisk -l /dev/sde Disk /dev/sde: 29,74 GiB, 31914983424 bytes, 62333952 sectors Disk model: MassStorageClass Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0xf389ccae

Device Boot Start End Sectors Size Id Type /dev/sde1 2048 62332927 62330880 29,7G c W95 FAT32 (LBA)

usermigallon avatar Dec 22 '21 10:12 usermigallon

you have no valid BPI image on your sdcard...it looks like a blanko sdcard.

you need a running system before installing new kernel

e.g. my debian buster/bullseye image you can found on bpi-forum

frank-w avatar Dec 22 '21 10:12 frank-w

I build r2

usermigallon avatar Dec 22 '21 10:12 usermigallon

my sd card is empty

usermigallon avatar Dec 22 '21 10:12 usermigallon

Need I to install first a Debian firstly install on my sd card?

usermigallon avatar Dec 22 '21 10:12 usermigallon

you can use another image too, but you need bootable image first...this repo is only linux-kernel which is loaded by bootchain (preloader,bootheaders,uboot) so this needs to be installed first

frank-w avatar Dec 22 '21 10:12 frank-w

ok, thank you very much for your help, I will install first Debian os

usermigallon avatar Dec 22 '21 10:12 usermigallon

I need Debian or Ubuntu?

usermigallon avatar Dec 22 '21 10:12 usermigallon

you need a compatible system with the right partitions to make install work

my kernel / build-script is only prepared for this.

e.g. openwrt uses another way to load kernel and there it cannot be replaced that easy (rebuild openwrt needed).

which system do you want to use?

frank-w avatar Dec 22 '21 10:12 frank-w

ok openwrt , I try to install , Debian, Ubuntu, openwrt and lede, but all are incomplete

usermigallon avatar Dec 22 '21 10:12 usermigallon

I install openwrt in sd card, and I have same SD-Card not found!

usermigallon avatar Dec 22 '21 10:12 usermigallon

Openwrt is not compatible as i've wrote above and it will miss my changes (e.g. internal wifi for r2, some patches for r64 like bluetooth/pcie),

debian is the most actual OS as i have not make a newer ubuntu image. If you want ubuntu you can replace rootfs from debian-image with bootstrapped ubuntu, change rootpw and make some small changes like i wrote down in my wiki

frank-w avatar Dec 22 '21 10:12 frank-w

So I install Debian?

usermigallon avatar Dec 22 '21 10:12 usermigallon

yes

frank-w avatar Dec 22 '21 10:12 frank-w

I have the same with Debian SD-Card not found!

usermigallon avatar Dec 22 '21 10:12 usermigallon

which debian have you used? do you see the mountpoint /media/$USER/BPI-BOOT/BPI-ROOT?

frank-w avatar Dec 22 '21 10:12 frank-w

I use Debian 11 and that is my command ./build.sh Build Kernel Cleanup Kernel Build needed: make u-boot-tools bc gcc libc6-dev libncurses5-dev ccache libssl-dev generate branch vars... getting git branch:

  • 5.4-main kernbranch:5.4-main,gitbranch:-main DTC arch/arm/boot/dts/mt2701-evb.dtb DTC arch/arm/boot/dts/mt6580-evbp1.dtb DTC arch/arm/boot/dts/mt6589-aquaris5.dtb DTC arch/arm/boot/dts/mt6592-evb.dtb DTC arch/arm/boot/dts/mt7623a-rfb-emmc.dtb DTC arch/arm/boot/dts/mt7623a-rfb-nand.dtb DTC arch/arm/boot/dts/mt7623n-rfb-emmc.dtb DTC arch/arm/boot/dts/mt7623n-bananapi-bpi-r2.dtb DTC arch/arm/boot/dts/mt7629-rfb.dtb DTC arch/arm/boot/dts/mt8127-moose.dtb DTC arch/arm/boot/dts/mt8135-evbp1.dtb CALL scripts/atomic/check-atomics.sh CALL scripts/checksyscalls.sh CHK include/generated/compile.h Kernel: arch/arm/boot/Image is ready Building modules, stage 2. MODPOST 220 modules OBJCOPY arch/arm/boot/zImage Kernel: arch/arm/boot/zImage is ready Image Name: Linux Kernel 5.4.150-main Created: Wed Dec 22 11:57:55 2021 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 8581016 Bytes = 8379.90 KiB = 8.18 MiB Load Address: 80008000 Entry Point: 80008000 build uImage without appended DTB... Image Name: Linux Kernel 5.4.150-main Created: Wed Dec 22 11:58:07 2021 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 8546152 Bytes = 8345.85 KiB = 8.15 MiB Load Address: 80008000 Entry Point: 80008000 ===========================================
  1. pack
  2. install to SD-Card
  3. deb-package
  4. upload choice [1234]:2 Install Kernel to SD Card generate branch vars... getting git branch:
  • 5.4-main kernbranch:5.4-main,gitbranch:-main uImage-filename: uImage_5.4.150-main Name: uImage_5.4.150-main Press [enter] to copy data to SD-Card... SD-Card not found!

usermigallon avatar Dec 22 '21 11:12 usermigallon

if I use this ./build.sh /media/user/a5dcd082-db07-4b55-a1bc-4193f3680cdf/ do not work too

./build.sh /media/user/a5dcd082-db07-4b55-a1bc-4193f3680cdf/ unknown command /media/user/a5dcd082-db07-4b55-a1bc-4193f3680cdf/

usermigallon avatar Dec 22 '21 11:12 usermigallon

you cannot pass mountpoint to build.sh, only predefined commands (shown with ./build.sh help)

the mountpoint looks like it is not a fat-partition. as i've said, the script looks for /media/$USER/BPI-BOOT

https://github.com/frank-w/BPI-R2-4.14/blob/5.4-main/build.sh#L316

so make sure your boot-partition has this label (my images do this), but i'm not use other images have this

so just show your partition table

this is my last Image for R2...(i guess you have this device): https://forum.banana-pi.org/t/bpi-r2-debian-bullseye-image/12592

frank-w avatar Dec 22 '21 11:12 frank-w

This is my sd https://ibb.co/0cJBbWr

usermigallon avatar Dec 22 '21 11:12 usermigallon

Maybe have you got a Debian to suggest ?

usermigallon avatar Dec 22 '21 11:12 usermigallon

I bought this card because there were 4 rj45 ports, but I regret, this card it is good for the trash

usermigallon avatar Dec 22 '21 11:12 usermigallon

your image still show no image flashed to card...you have to use dd or similar tool to write image to card...not copy file to the partition. image have to be uncompressed first

gunzip imagefile.gz dd if=imagefile of=/dev/sdX bs=10M status=progress

i posted link to my last debian image here: https://github.com/frank-w/BPI-R2-4.14/issues/87#issuecomment-999491218

i know first steps are hard, but it is different to install OS on x86...this is not a hardware-problem :) i do the most for this board (i did this all in my free time and i'm no employee of bpi/mtk) and have it running for over 4 years now as main-router

frank-w avatar Dec 22 '21 11:12 frank-w