-
Notifications
You must be signed in to change notification settings - Fork 175
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to use rootfs from SDCard w/o Ramdisk? #316
Comments
Cpio extract to sdcard |
Hi,
Thanks for the quick response.
What do you mean with "change dts to...'?
Which file contains the 'bootargs = ...' line?
Or is this part of "boot.json".?
Sorry, I'm still new to buildroot and the RiscV / FPGA World...
Bye, pottendo
Am 08.12.2022 19:17 schrieb jeremy-heath ***@***.***>:
Cpio extract to sdcard
Don’t load rootfs.cpio (remove from images.json)
Change dts to
bootargs = ***@***.*** rootwait console=liteuart earlycon=sbi root=/dev/mmcblk0p2 init=/sbin/init swiotlb=32";
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
hi,
All the best, |
Of course this issue can be closed - br pottendo |
@pottendo would you please share what exactly you changed in the end? not only dts, everything. |
Hi @LaneaLucy,
(I found that there's a limit with filename-length, the the '...dtb' is close to it.) The files there are:
The second partition, (root-fs) is the layout as built by buildroot. The board's mem-layout, as configured in litex:
The litex bios loads linux then like this:
find attached the devicetree source, which I compiled with bye, pottendo |
I have the problem, that my self compiled stuff looks like to big (image alone 9mb instead of 7mb) and with only 8mb ram it dont load everything. Then if i try the precompiled image and opensbi from github, nothing happens after liftoff... |
hi, My board (orangecart) features 16MB memory - I've configured the CPU to support both FPU and also the compact instructions (RVC) and some other processor features. But all 32bit RiscV. Note that my last build is quite a while ago (1+ year) - As I've completely re-installed my Linux host (away from Ubuntu to ArchLinux) I've not done any build with buildroot. A simple 'make linux-menuconfig` failed already... need to debug this. However, 8MB seems to be very low - maybe not possible with Linux unless totally reduced. hope this helps, pottendo |
@LaneaLucy , I managed to build again (now on my new host setup). I fell into the same openbsi issue with zicsr extensions. |
Then maybe someone should edit the readme... |
In fact buildroot provided here must be backported to have a full env up to date and working. |
Interesting fact I found out the hard way: |
Hi,
thanks for this project - I've managed to get Linux booting on a constrained Board (ECP5 based, https://github.com/zeldin/RVCop64, tweaked to use the VexRiscV-SMP CPU) - see attached bootlog.
I successfully built the 'buildroot' already. OpenSPI won't build (yet) here, as I'm lacking a proper cross-compiler; so I took the 'pre-built' and it worked so far, no changes needed.
As advertised: "32MB of RAM (Reduced to 8MB when rootfs can be put on a SDCard).", I'd like to move the rootfs to the SDCard (the board only features 16MB Ram).
I can't find the right spot, where the kernel/bootprocess is instructed to not use /dev/ram0 as rootdevice. I assume the 'bootargs' must be set somewhere...
Pls. let me know how to do this (properly)!
Which device name is visible under Linux?
The SDCard is like this (could be changed if needed):
boot.json:
Many thanks in advance.
pottendo
PS: Retro Commodore C64-Freaks, make sure you'll check out the 'OrangeCart' - pretty cool stuff! ;-)
Linux-Boot.log
The text was updated successfully, but these errors were encountered: