please choosego to mobile | Continue to access the PC version
Author: loboris

Linux Distributions for Orange PI H3 boards

  [Copy link]

18

threads

200

posts

887

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
887
Published in 2015-8-16 02:31:23 | Show all floors
blindpet replied at 2015-8-6 01:00
Can you link to the heatsink and fan unit you bought and a quick how to on how to install it? whic ...

http://www.orangepi.org/orangepi ... 4&fromuid=23438
Orange PI 2
www.orangepi.pp.ua

1

threads

47

posts

189

credits

Registered member

Rank: 2

credits
189
Published in 2015-8-17 00:54:10 | Show all floors
doubleatheman replied at 2015-8-16 16:20
I'm happy to say Ive been using the Base Image (Ubuntu). Been running beautifully as my Minecraft se ...

About the CPU clock, I looked at it while generating a vanillia kernel on my OPI2 with Debian (loboris version - lichee kernel).
When nothing runs (before generation), the clock is 480MHz.
As soon as the generation starts (by 'make uImage', without -j2 or -j4 - I have no external cooler), the clock is set to 1520MHz.
During the generation, the temperature may raise up to 65°, and the clock may be changed to 1008 or 480MHz.
Blowing on the board to lower the temperature makes the clock raise back to 1520MHz.
When the generation is done (after about 45mn with my USB HD), the clock falls back to 480MHz.
So, I think that this behaviour is correct and that there is no need to force the clock to be always 1520MHz.

1

threads

47

posts

189

credits

Registered member

Rank: 2

credits
189
Published in 2015-8-17 01:19:23 | Show all floors
loboris replied at 2015-6-22 04:48
I will soon upload new images and desktop installation scripts and you will be able to enable the  ...
In Debian nano and some other commands works only if executed as sudo. I don't know the reason yet.
That was hard to find!
This is due to the value of CONFIG_DEFAULT_MMAP_MIN_ADDR (65538).
Changing it to 4096 makes all programs run.
With the actual kernel, you may test it doing (as root):
  1. echo 4096 > /proc/sys/vm/mmap_min_addr
Copy code


5

threads

354

posts

2708

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2708
Published in 2015-8-17 03:10:17 | Show all floors
@moinejf
Good catch!


.............The CONFIG_DEFAULT_MMAP_MIN_ADDR was set to 65536 in mxs_defconfig,
this caused severe breakage of userland applications since the upper
limit for ARM is 32768. By default CONFIG_DEFAULT_MMAP_MIN_ADDR is
set to 4096 and can also be changed via /proc/sys/vm/mmap_min_addr
if needed...........


but:

................A lot of kernel structures are larger than 4k, and so NULL-pointer
dereferences
could still be exploitable.

index 46bc204..7a9fe0d 100755 (executable)
--- a/arch/arm/configs/msm_defconfig
+++ b/arch/arm/configs/msm_defconfig
@@ -292,7 +292,7 @@ CONFIG_ZONE_DMA_FLAG=0
CONFIG_VIRT_TO_BUS=y
CONFIG_UNEVICTABLE_LRU=y
CONFIG_ALIGNMENT_TRAP=y
-CONFIG_DEFAULT_MMAP_MIN_ADDR=4096
+CONFIG_DEFAULT_MMAP_MIN_ADDR=32768 ............


Does it work with 32768?


Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

10

threads

448

posts

5104

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
5104
 Author| Published in 2015-8-17 04:07:28 | Show all floors
Edited by loboris at 2015-8-16 23:55
moinejf replied at 2015-8-16 18:19
That was hard to find!
This is due to the value of CONFIG_DEFAULT_MMAP_MIN_ADDR (65538).
Changing ...

Great finding. Thank you. It works.
I'll test it more, and I'll upload the recompiled kernel in a couple of days.

@fritz, it works with 32768.

2

threads

34

posts

305

credits

Intermediate member

Rank: 3Rank: 3

credits
305
Published in 2015-8-18 02:35:16 | Show all floors
Hi Loboris,

First thanks a lot for producing proper images for the OPi2 and Plus. Much appreciated!

I am currently running the Ubuntu Vivid base image "OrangePI_Ubuntu_vivid_base.img" with your latest kernel on my OPi Plus but cannot see the eMMC.

orangepi@OrangePI:~$ uname -a
Linux OrangePI 3.4.39 #1 SMP PREEMPT Sat Jun 20 18:09:29 CEST 2015 armv7l armv7l armv7l GNU/Linux

orangepi@OrangePI:~$ sudo blkid
/dev/mmcblk0: PTUUID="b3c944ad" PTTYPE="dos"
/dev/mmcblk0p1: LABEL="BOOT" UUID="8160-DEA6" TYPE="vfat" PARTUUID="b3c944ad-01"

/dev/mmcblk0p2: LABEL="linux" UUID="514753c0-41db-4bbc-88f5-73149cbf377c" TYPE="ext4" PARTUUID="b3c944ad-02"



Any ideas? Happy to test newer kernels on my Pi Plus if you don't have access to the hardware.


5

threads

354

posts

2708

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2708
Published in 2015-8-18 05:49:49 | Show all floors
@loboris
You still build your kernels with the lichee SDK from the Download section?

Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

10

threads

448

posts

5104

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
5104
 Author| Published in 2015-8-18 15:14:23 | Show all floors
fritz replied at 2015-8-17 22:49
@loboris
You still build your kernels with the lichee SDK from the Download section?

Could you suggest any other ?

5

threads

354

posts

2708

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
2708
Published in 2015-8-19 15:36:22 | Show all floors
Well, I think for now better stay with "old".
With "newer" I can build .defconfig and it's booting but when I try with your .config I have a nice crash:
[    1.807282] kernel BUG at mm/percpu.c:578!
[    1.811814] sunxi oops: enable sdcard JTAG interface
[    1.812143] sunxi oops: cpu frequency: 1536 MHz
[    1.812143] sunxi oops: ddr frequency: 672 MHz
[    1.812143] sunxi oops: gpu frequency: 105 MHz
[    1.812143] sunxi oops: cpu temperature: 217
[    1.812143] Internal error: Oops - BUG: 0 [#1] PREEMPT SMP ARM
[    1.812143] Modules linked in:
[    1.812143] CPU: 2    Not tainted  (3.4.39+ #5)
[    1.812143] PC is at pcpu_free_area+0x64/0x170
[    1.812143] LR is at pcpu_chunk_slot+0x50/0x60

I hope that someday Allwinner decide to release proper H3 kernelsources.
Boards:
orangepi plus, olinuxino A20, cubieboard A10, mele A2000 .....

1

threads

47

posts

189

credits

Registered member

Rank: 2

credits
189
Published in 2015-8-19 15:45:35 | Show all floors
fritz replied at 2015-8-18 05:49
@loboris
You still build your kernels with the lichee SDK from the Download section?


It seems that Tronsmart's sdk is older than Steven's.
I am testing the kernel 4.2-rc7 with Jens Kuske's patch series, but it is far from working!
(Jens told me he does not work actively on the H3)
The machine boots, UART and MMC work. Only 1 CPU can be activated with a clock frequency about 250MHz.
With Lubuntu (upstart), the mountall program does not see that the root device is already mounted.
With Debian (upgraded to sid), systemd does not want to give me a serial console (and same with the lichee kernel).
So, actually, I am trying to put the SDIO stuff of the 8189es in the staging driver rtl8188eu (I don't need ethernet).
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list