-
-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
sunxi: add support for FriendlyARM NanoPi R1 #2990
Conversation
This is a copy of #2987 Please don't open a new PR just for changes next time. The change should be pushed to the old PR, because otherwise we will loose all the discussion history. |
The old fork got deleted and all commits were lost. Had to make another fork. |
"got deleted" -> I assume you deleted it ... :-) @jayanta525 Technically, it would have been possible. (Read about git rebase and git push -f.) However, it's waste of time to discuss that now. Please take care next time. |
Accidentally deleted the original branch the pull request was created of while trying to add support for nanopi-r2s. Cleanup of everything, and little knowledge about git led to another pull request. Won't happen again. DTS and uboot patch files are ported from armbian-kernel. Build compiles successfully and nanopi-r1 boots with the image. Everything works as expected. |
Minor formal comment:
|
package/boot/uboot-sunxi/patches/250-sun8i-h3-Nano-Pi-R1-add-device-tree.patch
Outdated
Show resolved
Hide resolved
package/boot/uboot-sunxi/patches/250-sun8i-h3-Nano-Pi-R1-add-device-tree.patch
Outdated
Show resolved
Hide resolved
target/linux/sunxi/patches-5.4/062-ARM-dts-sun8i-add-support-for-Nano-Pi-R1.patch
Outdated
Show resolved
Hide resolved
target/linux/sunxi/patches-5.4/062-ARM-dts-sun8i-add-support-for-Nano-Pi-R1.patch
Outdated
Show resolved
Hide resolved
target/linux/sunxi/patches-5.4/062-ARM-dts-sun8i-add-support-for-Nano-Pi-R1.patch
Outdated
Show resolved
Hide resolved
target/linux/sunxi/patches-5.4/062-ARM-dts-sun8i-add-support-for-Nano-Pi-R1.patch
Outdated
Show resolved
Hide resolved
target/linux/sunxi/patches-5.4/062-ARM-dts-sun8i-add-support-for-Nano-Pi-R1.patch
Outdated
Show resolved
Hide resolved
target/linux/sunxi/patches-5.4/062-ARM-dts-sun8i-add-support-for-Nano-Pi-R1.patch
Outdated
Show resolved
Hide resolved
target/linux/sunxi/patches-5.4/062-ARM-dts-sun8i-add-support-for-Nano-Pi-R1.patch
Outdated
Show resolved
Hide resolved
target/linux/sunxi/patches-5.4/062-ARM-dts-sun8i-add-support-for-Nano-Pi-R1.patch
Outdated
Show resolved
Hide resolved
target/linux/sunxi/patches-5.4/062-ARM-dts-sun8i-add-support-for-Nano-Pi-R1.patch
Outdated
Show resolved
Hide resolved
Your DTS seems to contain a lot of stuff that's in the DTSI as well (I only checked the directly included one, I assume similar cases may be found for the more remotely related files. Please tidy that up. |
bdac7e2
to
27fb40d
Compare
target/linux/sunxi/patches-5.4/062-ARM-dts-sun8i-add-support-for-Nano-Pi-R1.patch
Outdated
Show resolved
Hide resolved
You'll make your life much easier if you use "git rebase" instead of merging. Also have a look at "git rebase -i" for editing/squashing |
kernel print when booting.
add following to
|
|
Anything update? |
Why are the kernel and the u-boot device tree file different? We should try to use the same file for both. |
Hello @hauke, thanks for the review. This PR is outdated and needs to be updated and rebased. I will do that ASAP. |
@sbilly , can you help me out by testing some builds with new uboot and kernel? |
Could you also rename the patches, because these number are now already used by the board added in #3297 . |
sure. which commit? |
@sbilly the latest forced-pushed commit. |
I'll test it in few days. |
9bb2004
to
3398574
Compare
@hauke @adschm Updated the DTS with that of the schematics and rebased to the latest master.
Tested and Working:
|
490f987
to
b64952a
Compare
I would prefer if you keep the kernel and the u-boot device tree files more or less the same. Are you planning to add support for this board into upstream U-Boot and Linux kernel? |
No, this board is pretty old 2019 Q1, and with 100M LAN port, it's unlikely it will attract new buyers, and it's successor NanoPi R2S is already sent for upstream.
Updated. |
Specification: - CPU: Allwinner H3, Quad-core Cortex-A7 Up to 1.2GHz - DDR3 RAM: 512MB/1GB - Network: 10/100/1000M Ethernet x 1, 10/100M Ethernet x 1 - WiFi: 802.11b/g/n, with SMA antenna interface - USB Host: Type-A x2 - MicroSD Slot x 1 - MicroUSB: for OTG and power input - Debug Serial Port: 3Pin 2.54mm pitch pin-header - LED: nanopi:red:status nanopi:green:wan nanopi:green:lan - KEY: reset - Power Supply: DC 5V/2A Installation: - Write the image to SD Card with dd - Boot NanoPi from the SD Card Signed-off-by: Jayantajit Gogoi <jayanta.gogoi525@gmail.com>
@hauke Updated, u-boot and kernel now uses the same device tree. |
jayanta525@ac64bea It's seem good to me. @jayanta525 boot log: https://paste.ubuntu.com/p/jYpnFs23J6/ |
Thank you, I applied the patches to master. I removed the 300-sunxi-h3-suppress-clock-frequency-warning.patch patch, I am not sure if this is correct. Could you please send this upstream so it gets integrated into the upstream Linux kernel. It would also be nice if you could send these patches to upstream Linux and U-Boot. |
Specification:
Installation:
The following features are working and tested:
Signed-off-by: Jayantajit Gogoi jayanta.gogoi525@gmail.com