Firefly Open Source Community

   Login   |   Register   |
New_Topic
Print Previous Topic Next Topic

[Linux] Debian 11 SATA is not working

152

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
152

【Linux】 Debian 11 SATA is not working

Posted at 8/10/2022 16:35:07      View:4708 | Replies:7        Print      Only Author   [Copy Link] 1#
In u-boot everything is working great - scsi scan shows my disk and I can work with it. After I booting in debian 11 - I can't see my sata disks. After I rebooting to U-BOOT - there is no sata disks here to - scsi scan says nothing. Then I can reflash my uboot to sdcard and scsi can see my sata after this until the moment I boot into debian 11. After booting the Debian - system can't see my sata disks until the next u-boot reflashing...
What can it be? Device Tree is correct due to:
https://wiki.t-firefly.com/en/Core-3588J/usage_sata.html

Moreover - everything is correct due to this...
Reply

Use props Report

152

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
152
Posted at 8/10/2022 19:04:59        Only Author  2#
I discovered, that there is the same problem with USB. Moreover - when you plugging USB - kernel sees it but there is no new devices in /dev/ .
There is the same with sata - I see, that system acknowledged it, but there is no such device appeared in /dev
Reply

Use props Report

54

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
54
Posted at 8/11/2022 09:47:42        Only Author  3#
Sorry, I don't quite understand what you mean (uboot -> ubuntu?)
Reply

Use props Report

54

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
54
Posted at 8/11/2022 09:48:48        Only Author  4#
Please tell us the version number of the firmware and try the latest firmware v1.0.1a
Reply

Use props Report

152

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
152
Posted at 8/11/2022 21:47:57        Only Author  5#
SDK 1.0.1 not compiling:
********boot_merger ver 1.2********
Infoack loader ok.
pack loader okay! Input: /home/firefly/rockchip/rk3588/check/rkbin/RKBOOT/RK3588MINIALL.ini
/home/firefly/rockchip/rk3588/check/u-boot
ERROR: pack uboot.img failed! fit/uboot.itb actual: 2107392 bytes, max limit: 2097152 bytes
ERROR: Running build_uboot failed!
ERROR: exit code 1 from line 631:
    ./make.sh $UBOOT_COMPILE_COMMANDS CROSS_COMPILE=$CROSS_COMPILE

My commands:
./build.sh itx-3588j-debian.mk
./build.sh debian
./build.sh
Reply

Use props Report

152

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
152
Posted at 8/12/2022 15:55:49        Only Author  6#
I found the problem - the debian you are compiling with provided SDK had been configured incorrectly. There is such options you configured:
```
CONFIG_ATA=m
CONFIG_SATA_AHCI=m
CONFIG_SATA_AHCI_PLATFORM=m
CONFIG_BT_HCIBTUSB=m
CONFIG_BT_RTKBTUSB=m
CONFIG_IP_VS=m
CONFIG_VXLAN=m
CONFIG_BLK_DEV_SD=m
CONFIG_BLK_DEV_SR=m
CONFIG_SCSI=m
CONFIG_SCSI_SPI_ATTRS=m
CONFIG_USB_STORAGE=m
CONFIG_USB_UAS=m
```
You compiled modules, but lib module on running debian is empty. You should explain in your guide (on wiki) or automate inserting compiled modules to debian compiled rootfs.
Reply

Use props Report

152

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
152
Posted at 8/12/2022 16:00:22        Only Author  7#
I found modules in boot partition but they are not installing when you are booting to the system
Reply

Use props Report

152

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
152
Posted at 8/16/2022 15:10:30        Only Author  8#
Even you SDK 1.0.1b is not building yet:
********boot_merger ver 1.2********
Infoack loader ok.
pack loader okay! Input: /home/firefly/rockchip/rk3588/check/rkbin/RKBOOT/RK3588MINIALL.ini
/home/firefly/rockchip/rk3588/check/u-boot
ERROR: pack uboot.img failed! fit/uboot.itb actual: 2107392 bytes, max limit: 2097152 bytes
ERROR: Running build_uboot failed!
ERROR: exit code 1 from line 630:
    ./make.sh $UBOOT_COMPILE_COMMANDS CROSS_COMPILE=$CROSS_COMPILE
Reply

Use props Report

You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list