Page 1 of 1
How do you load the buildroot on sd card successfully
Posted: 2024-07-20 13:18
by utkarsharora17
I have a luckfox pico mini-B, the on-board 128mb flash runs just fine but I am unable to load the buildroot from sd card directly.
Steps I followed-->
1) I used a 16Gb sandisk sd card and a generic usb sd card adapter.
2) I formatted the sd card in FAT32 format which was the default I also tried other formats like NTFS but still it doesn't work.
3) I used the SoCToolKit and downloaded the image from google drive and followed the instructions as per the documentation.
The SoCToolKit says the image was written successfully but when I load the sd card to the luckfox pico mini-B nothing happens adb doesn't work and when I load the sd card on windows a popup message tells me that the drive is unusable, and I need to format it before using it. I got similar error message when I loaded it in a ubuntu machine.
Maybe the problem is something related to partition table.
Re: How do you load the buildroot on sd card successfully
Posted: 2024-07-31 2:40
by Crocodile
Hello,
After flashing the image, it is normal for the drive to be unusable because the image writing process causes Windows to be unable to recognize the SD card's file system. For your issue, it is recommended to use the serial port for debugging first. Entering adb takes effect only at the rootfs stage, whereas the serial port module can check if the SD card is recognized and uboot is read into memory during the boot stage. This helps to rule out problems like image corruption.
Re: How do you load the buildroot on sd card successfully
Posted: 2024-07-31 4:26
by avinash_gupta
This is because the SD Card is not using MBR or anyother standard partition method. This is common in case of flash storage. The partitions are defined in the kernel configurations. So SDCard here is managed as a Linux MTD device. See this page for more details
https://bootlin.com/blog/managing-flash ... ith-linux/
Re: How do you load the buildroot on sd card successfully
Posted: 2024-07-31 4:29
by avinash_gupta
What problem you are facing? is it booting from internal flash in place or SD card? or not booting at all? Connect a USB to TLL convertor of 3.3V level like FT232 and then see what is happening inside, also post the screenshot of the boot messages on serial terminal.
Re: How do you load the buildroot on sd card successfully
Posted: 2024-08-30 18:38
by utkarsharora17
Thanks for the reply I was able to load ubuntu.
Recently I installed apache2 web server to run a web project but now after few days the network sharing is somehow broken even though the settings are the same. For some reason I can login and ssh, use adb shell but can't pi ng my computer's ip on the pico mini device.
I double checked that network sharing is on and the ip address of the pico mini is correct but still not able use internet.
Documentation is great no doubt about it but there are some little things that just make it annoying use this device.
Re: How do you load the buildroot on sd card successfully
Posted: 2024-08-30 18:47
by utkarsharora17
Thanks for the reply!
It probably explains why windows was showing sd card as corrupt. I was able to load ubuntu. I used a spare port extender and connected the pico mini and somehow it works only when I use the port extender.
Re: How do you load the buildroot on sd card successfully
Posted: 2024-08-31 3:33
by Crocodile
utkarsharora17 wrote: ↑2024-08-30 18:38
Thanks for the reply I was able to load ubuntu.
Recently I installed apache2 web server to run a web project but now after few days the network sharing is somehow broken even though the settings are the same. For some reason I can login and ssh, use adb shell but can't pi ng my computer's ip on the pico mini device.
I double checked that network sharing is on and the ip address of the pico mini is correct but still not able use internet.
Documentation is great no doubt about it but there are some little things that just make it annoying use this device.
This suggestion is based on feedback from other users, which you can refer to here:
viewtopic.php?t=963.