How to compile linux and uboot for NanoPi R2S?
Posted: Tue Sep 22, 2020 7:55 am
Can you point me to forks that support NanoPi R2S?
Does NanoPi R2S require uboot?
Does NanoPi R2S require uboot?
Power & Source of Big Ideas
https://www.friendlyelec.com/Forum/
https://www.friendlyelec.com/Forum/viewtopic.php?f=65&t=3284
guidol wrote:
because the R2S is supported by armbian you could use the armbian-build-system to generate u-boot and linux for the R2S:
https://docs.armbian.com/Developer-Guid ... eparation/
crocket wrote:
armbian is a complex beast.
igorp wrote:crocket wrote:
armbian is a complex beast.
Things are far more complexArmbian kills great portion of that complexity and I agree it could be done more.
crocket wrote:
Is NanoPi R2s going to be soon supported by mainline linux and mainline u-boot?
igorp wrote:crocket wrote:
Is NanoPi R2s going to be soon supported by mainline linux and mainline u-boot?
For that you will have to look elsewhere.
... Armbian runs improved mainline u-boot / kernel combo
In ARM single board computers you have to forget about the "luxury" of distro hopping.crocket wrote:
I use either gentoo or artix linux.
Analysing RAW material, the source of that, is more complicated. That's what I am trying to tell you. Difference between Gentoo and Armbian/Debian is nothing compare to this.Analyzing armbian is difficult.
No, but that takes time and when mainline support finally arrives, you will probably need to fix this and that on your own. That's how mainline support looks like. It stays in rough state. We have this know-how, generic distros doesn't have it.crocket wrote:
Are you saying that NanoPi R2S is not going to get mainline support from linux and u-boot?
That code base is preparing things to compile u-boot. With Armbian you run ./compile "u-boot" and it prepares you environment and compiles u-boot. In any cases you didn't learn much unless you will be digging deeper into the u-boot. Armbian is a build tool, that saves you steps, time wasted for banal reasons that are subject of that wiki.crocket wrote:
To me, https://github.com/friendlyarm/sd-fuse_rk3328 seems more digestible than armbian. Armbian is a huge codebase.
Understanding a huge code base is more difficult than reading documents.
ARM is about diversity, making custom computer for specific purpose. Don't compare this to x86 mainstream. Even Rpi is 1st proprietary video player by design, then something else ... a popular consumer / hobby all purpose device.crocket wrote:
Perhaps, are we being exploited as experiment subjects by ARM?
Does'n exitscrocket wrote:
My money goes to a decent single board computer that doesn't require device trees.
Yes I am biased, but I am showing you the fastest track to build and learn.crocket wrote:
I think you are biased toward armbian. I want to figure out the exact steps without using third party tools
Armbian is a build system with huge knowledge base about ARM single board computers. Its Linux distribution is a demonstration, a side product of its capabilities.crocket wrote:
I have been doing so on x86 computers. I don't want to be reliant on armbian to bootstrap another linux distribution.
They do - they provide minimum required, but most Linux distributions are unable to pick from that, maintain that or bring to higher levels. The thing you are knowing as "various Linux distro" is the cheapest, the non-important part of the equation. Armbian, which uses Debian as a base, it could pick up Gentoo, Arch or whatever combination of scripting, DE, ... and would still stands out.crocket wrote:
I think single board computer manufacturers should provide build steps for linux and u-boot in addition to build scripts because build steps free users from specific distros and specific build tools.
crocket wrote:
Lots of people would want to use their preferred linux distributions.
95% of Rpi documentation is made by community, created or copy / pasted. Rpi is closed device and they (community) had to reverse engineer first, then write documentation. Here, you at least don't need to do that.crocket wrote:
Compared to the amount of efforts involved in documenting every little part of raspberry pi products, documenting build steps shouldn't be expensive. Build steps are short in my experiences.
crocket wrote:
https://wiki.odroid.com/odroid-c4/software is a good example of such documentation.
Got few around and no idea what to do with them. UEFI aka BIOS aka U-boot (aka low level programming) - if you are mentioning its not fully stable and since we don't cover UEFI nor x86, there is little to poke around that ATM.crocket wrote:
https://forum.radxa.com/t/is-rock-pi-x-going-to-require-device-tree/4553 says Rock Pi X is an x86_64 single board computer that comes with UEFI and does not require device tree. It will be interesting to explore x86 single board computers.
Ofc, but bringing up is expensive. Someone has to make that UEFI for new hardware platform. Otherwise you have to work out with u-boot the dirty way or move up at least to Armbian to be less messy.crocket wrote:
Is UEFI possible on ARM single board computers, too?
igorp wrote:
If you throw "1 mio EUR" into our project per year, we will hire few people to start developing UEFI for boards you want to have it on. But there are many other companies that will provide the same. Just look around.
Even you have a million you can't purchase things that does not exists, right?crocket wrote:
If I could spare a million euro per year, I would look into a standard open-source re-useable boot interface that every ARM single board computer can easily reuse.
Agree, but you seems to not understand the problem at all. If this would be cheap, it would be done many years ago.crocket wrote:
I think it's time for standardization of the boot process on ARM platform.
UEFI on Rpi or whatever device is not reusable on any other device except a few cheap generic segments. And you need to maintain that code. To be able to maintain it, you have to understand how things works.crocket wrote:
UEFI reuseable on RISC-V single board computers?
crocket wrote:
If you document build steps well, distributions will support your board
Armbian is a build system: https://github.com/armbian/build#compar ... -standards and on a hardware which it covers usually your best option. Somewhere your only. Others option will cost you more.crocket wrote:
I don't want to rely on distribution support which is not scalable to all hardwares.
Agree, but its free and you don't need to reverse engineer to make it work.crocket wrote:
Users should be able to find and follow build steps. Right now, documentation is sketchy.
Then you will need to stick to Raspberry Pi.crocket wrote:
I prefer user-level DIY.
It depends. SBC can be from purchasing chip and make a custom PCB around .... some purchases x86 ready to run device ... to do their stuff.crocket wrote:
But, it's going to be too much work for most people who don't even know about single board computers.
Don't know what you plan to use it for but I would not call that as an alternative since its completely different device. By design and also architecture. Also rockpi X still need some fine tuning to run OS stable. Its not plug and play even it might look that way. (even my Ryzen 9 desktop has some troubles with Linux, but I am sure they will be soon gone)crocket wrote:
It's just a big enough hassle that makes me want to explore alternatives like Rock Pi X. It can be done, but I wouldn't do it if there are simpler ways.
100% agree with this, but this is the only device where you plug and play and don't need to use much brain to operate with. They rely on (brainless by definition) consumers to sell stuff ...crocket wrote:
I don't like Raspberry Pi much after experiencing strong censorship on official raspberry pi forum and the mindset behind Raspberry Pi support staff. Their attitude reminds me of corporations such as Red Hat that want to own people. Even if Raspberry Pi is very good, I wouldn't buy it unless I have no other options.
If you compare single board computers from other manufacturers with Raspberry Pi, your thread can be quickly closed on official raspberry pi forum by Raspberry Pi support team. They hate competition. I don't support corporations that are hostile to freedom of choice.