please choosego to mobile | Continue to access the PC version
View: 9019|Reply: 7

Buildroot for Orangepi 2G IOT

[Copy link]

1

threads

1

posts

25

credits

Novice

Rank: 1

credits
25
Published in 2017-6-20 07:55:59 | Show all floors |Read mode
Im adding support for Orangepi 2G IOT to buildroot:
https://github.com/leojrfs/buildroot


It follows the kernel and uboot sources being worked on the unnofficial RDA8810 repositories at github.


For issues and questions please submit a issue on gitlab.

0

threads

5

posts

62

credits

Registered member

Rank: 2

credits
62
Published in 2018-4-18 15:29:54 | Show all floors
Good day all.

Anybody use buildroot now for building sdcard image for OrangePI-2G-IOT.
If i`m using buildroot from leojrfs github repository i had trouble with u-boot patch, new files was already created.
If i have removed u-boot patch files i hev next message
"drivers/usb/musb/musbhsdma.c: In function 'dma_channel_program':
drivers/usb/musb/musbhsdma.c:175:7: error: variable 'ddr_master_idx' has initializer but incomplete type
  enum ddr_master ddr_master_idx = PM_DDR_USB_DMA0 + musb_channel->idx;"
If i have changed repository for kernel and u-boot to next:
https://github.com/orangepi-xunlong/OrangePiRDA_kernel.git
https://github.com/orangepi-xunlong/OrangePiRDA_uboot.git
i get sdcard.img, but i can`t her booting.

Sorry for my bad English

0

threads

5

posts

62

credits

Registered member

Rank: 2

credits
62
Published in 2018-4-19 14:44:44 | Show all floors
Edited by fr0ster at 2018-4-19 14:56

Good day all!

I have taken official buildroot repository, configs for OrangePI-2G-IOT from leojrfs, replaced repo for kernel and u-boot, removed several patches
and created repo on github - https://github.com/fr0ster/buildroot.git.
For clone repo use next command - "git clone -b devel https://github.com/fr0ster/buildroot.git"
I have built image with this repo and at first sight all works.

Please check it if you have free time

PS Sorry for my bad English
PSS I created new config in new branch - devel

6

threads

70

posts

370

credits

Intermediate member

Rank: 3Rank: 3

credits
370
Published in 2017-6-20 14:09:14 | Show all floors
Thanks, i go to probe it.

10

threads

35

posts

305

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
305
Published in 2017-6-21 20:34:55 | Show all floors
Good work
Reply

Use magic report

0

threads

5

posts

62

credits

Registered member

Rank: 2

credits
62
Published in 2018-4-18 21:32:48 | Show all floors
I think i know why buildroot image don`t work.

file boot.cmd have next string:
"fatload mmc 0:1 ${factorydata_addr} factorydata.img"
"mdcom_cal_loadm ${factorydata_addr}"
But after building i don`t have factorydata.img.
If i remove this string that i get sdimage that can be booting.

Also need remove several patch if used
https://github.com/orangepi-xunlong/OrangePiRDA_kernel.git and
https://github.com/orangepi-xunlong/OrangePiRDA_uboot.git:
0001-linux-remove-r~80211-to-tree.patch
u-boot-001-gcc5-support.patch
u-boot-002-gcc5-use_gcc_inline_version_instead_c99.patch
u-boot-003-dont-inline-weak-symbols.patch
u-boot-004-add-support-for-gcc6.patch
u-boot-005-ARM-asm-io.h-use-static-inline.patch

13

threads

93

posts

682

credits

Senior member

Rank: 4

credits
682
Published in 2018-4-20 14:04:05 | Show all floors
I don't have that board but will check your repo.
Thanks.

0

threads

5

posts

62

credits

Registered member

Rank: 2

credits
62
Published in 2018-4-21 01:36:41 | Show all floors
As i understood Leojrfs has used kernel repository https://github.com/RDA8810/linux-RDA8810.git and 9 month ago his patches was added into this repo but last commit into leojrfs was done 10 month ago.

Also i found interesting trouble, if you have high level of wi-fi signal and you connected antenna to your board that module rdawfmac.ko will get kernel panic

Sorry for my bad English, i hope you wil understend what i mean
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list