Jump to content

Recommended Posts

Posted

Hello,

 

my Beelink X2 is a Allwinner H3 TV Box and is possible to boot the Orange Pi PC Image from OrangePi.org but not from armbian.

 

What is needed to bring this TV Box to work with armbian, I already habe a immage from Beelink X2 internal 8GB NAND.

 

Is there a howto to get this working (Eng/Ger)

 

Thank you.

 

Here is smal part from NAND Image, If some one need more, I will insert it.

 

 

hd BeelinkX2.img |head -n 200
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000001b0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 80 00  |................|
000001c0  00 00 0b 00 00 00 00 20  33 00 00 e8 b4 00 00 00  |....... 3.......|
000001d0  00 00 06 00 00 00 00 20  01 00 00 80 00 00 00 00  |....... ........|
000001e0  00 00 05 00 00 00 01 00  00 00 00 80 31 00 00 00  |............1...|
000001f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000200  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000003c0  00 00 83 00 00 00 ff 9f  01 00 00 80 00 00 00 00  |................|
000003d0  00 00 05 00 00 00 01 00  00 00 00 80 00 00 00 00  |................|
000003e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000003f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000400  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000005c0  00 00 83 00 00 00 fe 1f  02 00 00 80 00 00 00 00  |................|
000005d0  00 00 05 00 00 00 02 00  00 00 00 80 00 00 00 00  |................|
000005e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000005f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000600  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000007c0  00 00 83 00 00 00 fd 9f  02 00 00 00 18 00 00 00  |................|
000007d0  00 00 05 00 00 00 03 00  00 00 00 00 18 00 00 00  |................|
000007e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000007f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000800  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000009c0  00 00 83 00 00 00 fc 9f  1a 00 00 80 00 00 00 00  |................|
000009d0  00 00 05 00 00 00 04 00  00 00 00 80 00 00 00 00  |................|
000009e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000009f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000a00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000bc0  00 00 83 00 00 00 fb 1f  1b 00 00 00 01 00 00 00  |................|
00000bd0  00 00 05 00 00 00 05 00  00 00 00 00 01 00 00 00  |................|
00000be0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000bf0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000c00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000dc0  00 00 83 00 00 00 fa 1f  1c 00 00 80 00 00 00 00  |................|
00000dd0  00 00 05 00 00 00 06 00  00 00 00 80 00 00 00 00  |................|
00000de0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000df0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00000e00  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00000fc0  00 00 83 00 00 00 f9 9f  1c 00 00 80 00 00 00 00  |................|
00000fd0  00 00 05 00 00 00 07 00  00 00 00 80 00 00 00 00  |................|
00000fe0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000ff0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00001000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000011c0  00 00 83 00 00 00 f8 1f  1d 00 00 80 00 00 00 00  |................|
000011d0  00 00 05 00 00 00 08 00  00 00 00 80 00 00 00 00  |................|
000011e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000011f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00001200  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000013c0  00 00 83 00 00 00 f7 9f  1d 00 00 00 01 00 00 00  |................|
000013d0  00 00 05 00 00 00 09 00  00 00 00 00 01 00 00 00  |................|
000013e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000013f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00001400  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000015c0  00 00 83 00 00 00 f6 9f  1e 00 00 80 00 00 00 00  |................|
000015d0  00 00 05 00 00 00 0a 00  00 00 00 80 00 00 00 00  |................|
000015e0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000015f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00001600  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000017c0  00 00 83 00 00 00 f5 1f  1f 00 00 00 14 00 00 00  |................|
000017d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000017f0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 55 aa  |..............U.|
00001800  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00002000  bc 00 00 ea 65 47 4f 4e  2e 42 54 30 18 d1 dc bc  |....eGON.BT0....|
00002010  00 80 00 00 30 00 00 00  00 00 00 00 00 00 00 00  |....0...........|
00002020  00 00 00 00 b0 5b 00 00  00 00 34 2e 32 2e 30 00  |.....[....4.2.0.|
00002030  00 00 00 00 01 00 00 00  40 02 00 00 03 00 00 00  |........@.......|
00002040  fb 3b 3b 00 01 00 00 00  00 00 e4 10 00 00 00 00  |.;;.............|
00002050  40 18 00 00 40 00 00 00  18 00 00 00 02 00 00 00  |@...@...........|
00002060  92 a1 48 00 8d 41 c2 01  51 60 07 00 00 00 00 00  |..H..A..Q`......|
00002070  00 00 00 00 00 00 00 00  64 00 00 00 40 02 89 13  |........d...@...|
00002080  00 00 00 00 00 00 00 00  00 00 00 00 00 00 aa 6a  |...............j|
00002090  79 79 00 00 00 28 80 01  00 00 00 00 00 00 00 00  |yy...(..........|
000020a0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
000020b0  00 00 00 00 00 00 00 00  00 00 00 00 01 04 02 01  |................|
000020c0  ff ff 00 00 01 05 02 01  ff ff 00 00 01 00 00 00  |................|
000020d0  01 00 03 ff ff ff 00 00  01 01 03 ff ff ff 00 00  |................|
000020e0  01 02 03 ff ff ff 00 00  01 03 03 ff ff ff 00 00  |................|
000020f0  00 00 00 00 00 00 00 00  06 02 02 01 02 ff 00 00  |................|
00002100  06 03 02 01 02 ff 00 00  06 01 02 01 02 ff 00 00  |................|
00002110  06 00 02 01 02 ff 00 00  06 05 02 01 02 ff 00 00  |................|
00002120  06 04 02 01 02 ff 00 00  00 00 00 00 00 00 00 00  |................|
00002130  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00002170  00 00 00 00 00 00 00 00  03 05 03 01 02 ff 00 00  |................|
00002180  03 06 03 01 02 ff 00 00  03 08 03 01 02 ff 00 00  |................|
00002190  03 09 03 01 02 ff 00 00  03 0a 03 01 02 ff 00 00  |................|
000021a0  03 0b 03 01 02 ff 00 00  03 0c 03 01 02 ff 00 00  |................|
000021b0  03 0d 03 01 02 ff 00 00  03 0e 03 01 02 ff 00 00  |................|
000021c0  03 0f 03 01 02 ff 00 00  00 00 00 00 00 00 00 00  |................|
000021d0  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
00002200  00 00 00 00 ff ff ff ff  02 00 00 00 ff ff ff ff  |................|
00002210  01 00 00 00 00 00 00 00  01 00 00 00 00 00 00 00  |................|
00002220  04 00 00 00 00 00 00 00  08 00 00 00 00 00 00 00  |................|
00002230  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00002240  00 00 00 00 00 00 00 00  01 00 00 00 00 00 00 00  |................|
00002250  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
*
000022f0  00 00 00 00 00 00 00 00  ff ff ff ea 00 00 0f e1  |................|
00002300  1f 00 c0 e3 13 00 80 e3  c0 00 80 e3 02 0c c0 e3  |................|
00002310  00 f0 21 e1 10 0f 11 ee  02 0a c0 e3 07 00 c0 e3  |..!.............|
00002320  02 0b 80 e3 01 0a c0 e3  10 0f 01 ee 4b da a0 e3  |............K...|
00002330  bc 06 00 fa 00 00 00 eb  ec 11 00 fa 18 00 9f e5  |................|
00002340  18 10 9f e5 00 20 a0 e3  00 20 80 e5 04 00 80 e2  |..... ... ......|
00002350  01 00 50 e1 fb ff ff 1a  0e f0 a0 e1 e8 5b 00 00  |..P..........[..|
00002360  f4 5e 00 00 01 f0 38 be  03 68 23 ea 01 03 13 43  |.^....8..h#....C|
00002370  03 60 70 47 42 6d f8 b5  83 6d 02 f0 0f 05 03 f0  |.`pGBm...m......|
00002380  0f 01 2d 02 04 46 45 ea  41 05 4c 48 4c 49 0e 68  |..-..FE.A.LHLI.h|
00002390  2e 43 41 f8 04 6b 81 42  f9 d1 c2 f3 03 15 c3 f3  |.CA..k.B........|
000023a0  03 11 2d 02 45 ea 41 05  46 48 47 49 0e 68 2e 43  |..-.E.A.FHGI.h.C|
000023b0  41 f8 04 6b 81 42 f9 d1  02 f4 70 61 c3 f3 03 25  |A..k.B....pa...%|
000023c0  41 ea 45 05 41 48 42 49  0e 68 2e 43 41 f8 04 6b  |A.E.AHBI.h.CA..k|
000023d0  81 42 f9 d1 c2 f3 03 35  c3 f3 03 31 2d 02 45 ea  |.B.....5...1-.E.|
000023e0  41 05 3c 48 3c 49 0e 68  2e 43 41 f8 04 6b 81 42  |A.<H<I.h.CA..k.B|
000023f0  f9 d1 3a 48 c2 f3 03 4e  05 68 c3 f3 03 46 25 f0  |..:H...N.h...F%.|
00002400  80 65 05 60 2d 4d 46 ea  0e 26 2f 68 c2 f3 03 5e  |.e.`-MF..&/h...^|
00002410  37 43 2f 60 6f 68 3e 43  6e 60 d5 f8 80 70 c3 f3  |7C/`oh>Cn`...p..|
00002420  03 56 46 ea 0e 26 37 43  c5 f8 80 70 d5 f8 84 70  |.VF..&7C...p...p|
00002430  c2 f3 03 6e 3e 43 c5 f8  84 60 d5 f8 00 71 c3 f3  |...n>C...`...q..|
00002440  03 66 46 ea 0e 26 37 43  c5 f8 00 71 d5 f8 04 71  |.fF..&7C...q...q|
00002450  12 0f 3e 43 c5 f8 04 61  0d 68 1b 0f 43 ea 02 23  |..>C...a.h..C..#|
00002460  43 ea 05 02 0a 60 1e 49  0a 68 13 43 0b 60 03 68  |C....`.I.h.C.`.h|
00002470  43 f0 80 63 03 60 01 20  01 f0 ae fd 63 68 06 3b  |C..c.`. ....ch.;|
00002480  01 2b 19 d8 21 6d 17 4b  c1 f3 03 10 16 4a 00 02  |.+..!m.K.....J..|
00002490  1c 68 04 43 43 f8 04 4b  93 42 f9 d1 13 4a 01 f0  |.h.CC..K.B...J..|
000024a0  0f 03 10 68 1b 02 43 ea  00 01 11 60 51 68 19 43  |...h..C....`Qh.C|
000024b0  51 60 91 6e 0b 43 93 66  f8 bd 00 bf 34 33 c6 01  |Q`.n.C.f....43..|
000024c0  10 33 c6 01 b4 33 c6 01  90 33 c6 01 34 34 c6 01  |.3...3...3..44..|
000024d0  10 34 c6 01 b4 34 c6 01  90 34 c6 01 00 31 c6 01  |.4...4...4...1..|
000024e0  b8 34 c6 01 40 32 c6 01  68 32 c6 01 18 32 c6 01  |.4..@2..h2...2..|
000024f0  1b 4b 1c 4a 1c 49 1a 60  01 22 9a 60 1b 4a 1c 4b  |.K.J.I.`.".`.J.K|
00002500  1c 48 13 60 51 60 1c 49  91 60 1c 49 d1 60 13 61  |.H.`Q`.I.`.I.`.a|
00002510  1b 4a 1c 4b 1c 49 1a 60  1c 4b 1d 4a 13 60 1d 4a  |.J.K.I.`.K.J.`.J|
00002520  0a 60 48 60 1c 48 88 60  cb 60 0a 61 1b 49 1c 4a  |.`H`.H.`.`.a.I.J|
00002530  11 60 1c 49 1c 4a 0a 60  4b 60 8a 60 cb 60 1b 4b  |.`.I.J.`K`.`.`.K|
00002540  1b 49 1a 60 1b 4a 1c 4b  13 60 51 60 1b 49 91 60  |.I.`.J.K.`Q`.I.`|
00002550  1b 49 d1 60 13 61 1b 4a  1b 4b 1a 60 70 47 00 bf  |.I.`.a.J.K.`pG..|
00002560  90 20 c6 01 90 01 01 00  00 01 80 00 10 20 c6 01  |. ........... ..|
00002570  0d 00 00 02 09 00 00 07  09 00 00 06 00 04 00 01  |................|
00002580  00 01 60 00 24 20 c6 01  2c 20 c6 01 0d 00 00 01  |..`.$ .., ......|
00002590  28 20 c6 01 80 00 20 00  40 06 00 01 09 00 00 01  |( .... .@.......|
000025a0  40 20 c6 01 44 20 c6 01  80 00 40 00 54 20 c6 01  |@ ..D ....@.T ..|
000025b0  00 01 40 00 58 20 c6 01  09 00 00 04 0d 03 00 20  |..@.X ......... |
000025c0  00 18 00 04 20 01 40 00  6c 20 c6 01 2d e9 f0 4f  |.... .@.l ..-..O|
000025d0  c3 6d 41 68 99 b0 9b 07  d0 f8 00 c0 03 91 24 d5  |.mAh..........$.|
000025e0  83 6a c3 f3 42 52 05 92  c2 6a c3 f3 c5 36 c2 f3  |.j..BR...j...6..|
000025f0  c4 35 c3 f3 c3 21 c3 f3  84 14 03 f0 3f 03 06 93  |.5...!......?...|
00002600  c2 f3 02 57 c2 f3 c4 53  02 95 c2 f3 c3 28 c2 f3  |...W...S.....(..|
00002610  84 15 02 f0 3f 02 07 92  02 6b c2 f3 08 39 12 05  |....?....k...9..|
00002620  12 0d cd f8 24 90 08 92  92 e2 03 99 4f ea 5c 02  |....$.......O.\.|
00002630  03 29 7c d1 32 26 56 43  4f f4 7a 75 b6 fb f5 f3  |.)|.2&VCO.zu....|
00002640  0a 21 51 43 05 fb 13 66  0f 24 00 2e 0c bf 1e 46  |.!QC...f.$.....F|
00002650  5e 1c b1 fb f5 f3 54 43  05 fb 13 11 00 29 0c bf  |^.....TC.....)..|
00002660  19 46 59 1c b4 fb f5 f3  05 fb 13 44 00 2c 0c bf  |.FY........D.,..|
00002670  1c 46 5c 1c 35 23 53 43  b3 fb f5 f7 05 fb 17 33  |.F\.5#SC.......3|
00002680  00 2b 18 bf 01 37 ff b2  d3 00 06 97 b3 fb f5 f7  |.+...7..........|
00002690  05 fb 17 33 00 2b 0c bf  3b 46 7b 1c c9 b2 db b2  |...3.+..;F{.....|
000026a0  03 29 98 bf 04 21 02 2b  f6 b2 e4 b2 40 f2 48 84  |.)...!.+....@.H.|
000026b0  03 2b 40 f2 46 84 1f 46  02 93 4f f0 26 0a 0a fb  |.+@.F..F..O.&...|
000026c0  02 fa 4f f4 7a 75 ba fb  f5 f8 05 fb 18 aa ba f1  |..O.zu..........|
000026d0  00 0f 0c bf c2 46 08 f1  01 0a 5f fa 8a fa cd f8  |.....F...._.....|
000026e0  1c a0 41 f6 78 6a 0a fb  02 fa ba fb f5 f8 05 fb  |..A.xj..........|
000026f0  18 aa ba f1 00 0f 0c bf  c2 46 08 f1 01 0a 4f f4  |.........F....O.|
00002700  af 78 08 fb 02 f2 b2 fb  f5 f8 05 fb 18 22 00 2a  |.x...........".*|
00002710  0c bf 42 46 08 f1 01 02  92 b2 ca f3 4f 1a 09 92  |..BF........O...|
00002720  cd f8 20 a0 25 46 4f f0  08 08 02 22 26 e1 03 9b  |.. .%FO...."&...|
00002730  02 2b 7e d1 32 26 56 43  4f f4 7a 75 b6 fb f5 f3  |.+~.2&VCO.zu....|
00002740  0a 21 05 fb 13 66 51 43  00 2e 0c bf 1e 46 5e 1c  |.!...fQC.....F^.|
00002750  14 24 b1 fb f5 f3 05 fb  13 11 54 43 00 29 0c bf  |.$........TC.)..|
00002760  19 46 59 1c b4 fb f5 f3  05 fb 13 44 00 2c 0c bf  |.FY........D.,..|
00002770  1c 46 5c 1c 41 23 53 43  b3 fb f5 f7 05 fb 17 33  |.F\.A#SC.......3|
00002780  00 2b 18 bf 01 37 ff b2  06 97 d7 00 b7 fb f5 f3  |.+...7..........|
00002790  4f f0 0f 08 05 fb 13 77  08 fb 02 f8 00 2f 0c bf  |O......w...../..|
000027a0  1f 46 5f 1c 4f f0 2d 0a  b8 fb f5 f3 05 fb 13 88  |.F_.O.-.........|
000027b0  0a fb 02 fa b8 f1 00 0f  0c bf 98 46 03 f1 01 08  |...........F....|
000027c0  ba fb f5 f3 05 fb 13 aa  ba f1 00 0f 0c bf 9a 46  |...............F|
000027d0  03 f1 01 0a 5f fa 8a fa  cd f8 1c a0 41 f6 78 6a  |...._.......A.xj|
000027e0  0a fb 02 fa ba fb f5 f3  05 fb 13 aa ba f1 00 0f  |................|
000027f0  0c bf 9a 46 03 f1 01 0a  4f f4 a4 73 5a 43 b2 fb  |...F....O..sZC..|
00002800  f5 f3 05 fb 13 22 00 2a  0c bf 1a 46 5a 1c ff b2  |.....".*...FZ...|
00002810  5f fa 88 f8 ca f3 4f 1a  92 b2 f6 b2 c9 b2 e4 b2  |_.....O.........|
00002820  cd f8 20 a0 09 92 02 97  45 46 03 9b 4f f0 01 09  |.. .....EF..O...|
00002830  4b e1 03 99 06 29 40 f0  a3 80 32 26 56 43 4f f4  |K....)@...2&VCO.|
00002840  7a 75 b6 fb f5 f3 0a 21  51 43 05 fb 13 66 18 24  |zu.....!QC...f.$|
00002850  00 2e 0c bf 1e 46 5e 1c  b1 fb f5 f3 54 43 05 fb  |.....F^.....TC..|
00002860  13 11 00 29 0c bf 19 46  59 1c b4 fb f5 f3 05 fb  |...)...FY.......|
00002870  13 44 00 2c 0c bf 1c 46  5c 1c 46 23 53 43 b3 fb  |.D.,...F\.F#SC..|

 

 

Posted

Armbian uses already mainline u-boot so that might make the difference (DRAM initialisation happens there and Orange Pis and Beelink use different DRAM settings). Since it's reported that images for Orange Pi 2 should be able to run on the Beelink so Armbian should be able to boot. What do you refer to when you're stating Armbian does not boot?

 

I just had a look at this guide here and decided to add a modified version of the fex file used there to Armbian (note: there are a few really strange settings inside that look like stuff for A83T has been used -- copy&paste error or something like this). 

 

You can try out this preliminary test image: Armbian_5.06_Beelink_X2_Debian_jessie_3.4.110_desktop.7z  (burn it to SD card, no NAND/eMMC supported at the moment)

 

Please keep in mind that it might not boot at all (serial console would be the best idea to diagnose such things) and that the 1st boot might take a very long time since Ethernet might not work yet. The OS image will try to reboot one time (stay patient for at least 5 minutes) but might fail and you then have to power cycle the board (we had these issues with Orange Pi Plus in the past that also has GbE networking).

 

You should end up after the first automated reboot with something like this, create then an user account, adjust display settings if wanted (reboot necessary) and if network is working, please do a 'sudo armbianmonitor -u' immediately and post the URL here.

 

 

 

 ____            _ _       _     __  ______  

| __ )  ___  ___| (_)_ __ | | __ \ \/ /___ \ 

|  _ \ / _ \/ _ \ | | '_ \| |/ /  \  /  __) |

| |_) |  __/  __/ | | | | |   <   /  \ / __/ 

|____/ \___|\___|_|_|_| |_|_|\_\ /_/\_\_____|

                                             

 

Welcome to ARMBIAN Debian GNU/Linux 8 (jessie) 3.4.110-sun8i 

 

System load:   0.23             Up time:       1 min

Memory usage:  5 % of 1001Mb    IP:            127.0.0.1

CPU temp:      33?°C           

Usage of /:    30% of 7.3G   

 

[ 12 updates to install: apt-get upgrade ]

 

 

Thank you for choosing Armbian! Support: www.armbian.com

Posted

Thank you, the BeelinX2 didn't boot directly or by pressing Power, only after press on the reset button, the armbian booted one time with HDMI output, but now I'm not able to boot with reset button, Androit is working, but not the recovery function.

 

Did you insert the config to the git repository, or how can I rebuild and test it?

 

Thank you.

Posted

Thank you, the BeelinX2 didn't boot directly or by pressing Power, only after press on the reset button

 

Maybe you need just a bit more patience? All sunxi devices I know prefer booting from an SD card over NAND/eMMC (confirmed for the X2) so it should be possible you just ran into the 'freeze at 1st reboot' issue we had with Orange Pi Plus also.

 

You should be able to simply try to reboot with SD card inserted and the device should boot from the card (as long as it's readable and not corrupt -- I tested the last few days with quite a few broken cards).

Posted

Yes, an Orange PI PC Image ist directly booting, but not armbian, I will add the UART for debugging later.

 

Thank you for your support.

Posted

Yes, an Orange PI PC Image ist directly booting, but not armbian

 

Ok, already time to stop since this gets just a waste of time. You told before the Armbian image has booted once and now you're telling the opposite.

 

I will only look into this if you ensure that the SD card you use isn't faulty (see our documentation) and if you get back to us with more precise reports. In case you get the image booting please follow the aforementioned advice (it might be possible that the OS freezes shortly before rebooting then a simple power cycle should suffice) and in case you get network after the one mandatory reboot upload support data using 'armbianmonitor -u', if network isn't available and you're connected over serial console we need the contents of /var/log/armhwinfo.log instead.

Posted

ok, nice.

 

I was able to boot armbian a second time and have now a logfile and UART log for you, after reboot the system will not boot from micro SD, only "Trying to boot from MMC".

 

If I change to an OrangePi PC Image it will boot direcly from micro SD, this is what happend before, armbian only booted one time, and I rewrote the SD card so I had no logfile.

 

How can I use the new FEX file, is there a howto?

 

Thanks, I don't want to waste your time, if you need more details, please let me know.

U-Boot SPL 2016.03-armbian (Mar 20 2016 - 13:58:39)
DRAM: 1024 MiB
Failed to set core voltage! Can't set CPU frequency
Trying to boot from MMC

U-Boot SPL 2016.03-armbian (Mar 20 2016 - 13:58:39)
DRAM: 1024 MiB
Failed to set core voltage! Can't set CPU frequency
Trying to boot from MMC

armbian-boot.txt

armhwinfo.log.txt
OrnagePiPC-Boot.txt

 

Posted

I was able to boot armbian a second time and have now a logfile and UART log for you, after reboot the system will not boot from micro SD, only "Trying to boot from MMC".

 

 

The last message does not mean that the device tries to boot from eMMC but MMC is a more generic term. This might be a hot vs. cold boot issue, I would assume you also tried to let Armbian start the 1st time and when the reboot failed, simply power the Beelink down, wait a few seconds and power it up again with SD card inserted?

 

As already said I would suspect problems with DRAM initialisation. The OS image you're using does this differently and is obviously able to detect the DRAM type (or did you exchange boot0/sysconfig.fex as per the documentation?):

 

I've totally overseen before that these settings are obviously wrong (suitable for Orange Pis but not for the Beelink, the latter using LPDDR3 RAM which can be driven with wrong settings -- voltage too high -- but that doesn't make that much sense)

DRAM DRIVE INFO: V0.8
DRAM Type = 3 (2:DDR2,3:DDR3,6:LPDDR2,7:LPDDR3)
DRAM CLK = 672 MHz
DRAM zq value: 003b3bfb
READ DQS LCDL = 001c1c1c
DRAM SIZE =1024 M

This happens even before u-boot is loaded so there's not that much we could do now unless one of the sunxi-developers starts to support this type of DRAM in u-boot (maybe I'm wrong and mainline u-boot has working auto detection now)

 

So the Orange Pi image you're using drives DRAM wrong (maybe in almost the same way as mainline u-boot with OPi PC settings would do) but that doesn't seem to matter that much. I'm currently letting another image build for Beelink X2 (adopting at least the CONFIG_DRAM_ZQ setting) and will post the link later.

 

If you can rule out that you were running in such a hot boot issue then the way to use script.bin in Armbian should already be done after the first reboot since our 'firstrun' service will just create the appropriate symlink: https://github.com/ThomasKaiser/lib/blob/0607c2c1b2645cb0788b588e4ed3564c7e06bc0f/scripts/firstrun#L155

 

In case you don't get Armbian up and running I would suggest taking loboris' latest Ubuntu 15.04 Mate image for OPi PC, call his update_kernel.sh to get lastest settings and then exchange script.bin on the 1st partition (FAT and usually available as /media/boot/) with Armbian's: https://github.com/ThomasKaiser/lib/blob/0607c2c1b2645cb0788b588e4ed3564c7e06bc0f/config/beelinkx2.fex(you need to convert the fex file using fex2bin, part of the so called sunxi-tools. If not available a simple 'sudo apt-get install sunxi-tools' should help)

 

 

By using Armbian's fex you should get working USB ports, network and leds and also sane thermal settings. Please report back anyway. BTW: Is your Beelink connected to a Fast Ethernet capable switch/router?

Posted

I updated the image once again: Armbian_5.06_Beelink_X2_Debian_jessie_3.4.110_desktop.7z

 

Changes: 

  • DRAM settings in u-boot adjusted
  • armhwinfo modified to always write "Beelink X2" to /var/run/machine.id
  • script.bin links to beelinkx2.bin by default

It would be really helpful if you try it again, in case you get stuck at the 1st automated reboot simply power cycle the board and if it boots then please submit logs again (preferably output from 'sudo armbianmonitor -u' in case network works and support data could be uploaded)

 

Edit: In case you end up with just 512MiB RAM, simply download this archive, extract the u-boot .deb, install it using 'dpkg -i' and reboot.

Posted

Hi, at the moment, it doesn't work, see putty-20160321-182046.log for more details, I insert some lines with Infos.

 

Networkconnection is Gigabit and is working with Ubuntu 15.04 Mate image for OPi PC, after update the sytem, kernel and change to your script.bin I got this output and it ended in a initramfs, see putty-20160321-233642.log, so I changed the line 690 to "sdc_used = 0" and the ubuntu Mate is booting but has no Network. See putty-20160322-002136.log

 

Is it possible to decompile a eGON.BTN bin file from the NAND of BeelinkX2 ? bin2fex is not working.

 

 

Thank you for your time, I hope my answers are helpfull.

 

 

 

 

putty-20160321-182046.log.txt

putty-20160321-233642.log.txt

putty-20160322-002136.log.txt

Posted

Is it possible to decompile a eGON.BTN bin file from the NAND of BeelinkX2 ? bin2fex is not working.

 

See my first link above how you would use a PC or a VM, Linux and such a sysconfig.fex to create the files to overwrite sectors on the SD card. I won't look into the logs since I'm only interested in developing Armbian and you didn't download the 2nd image I supplied.

 

I will look into it myself when my Beelink X2 arrives, currently available for less than 25€  (unfortunately I thought wrongly that it features GbE -- at least according to the contents of script.bin it should -- but that's not true). 

 

At least now it's a bit more clear what has to be tweaked:

  • LPDDR3 support in u-boot (is already there but for A83T only at the moment)
  • networking like on Orange Pi PC (Fast Ethernet instead of GbE)
  • adjusting thermal/cpufreq settings
  • adding peripheral/led definitions

The first part is the hardest one at least for me since I'm still an u-boot NOOB.

Posted

Hi,

I have also got two Beelink X2 boxes and I am interested in running Armbian on them. What I tried so far is making an SD-card with Armbian for Orange Pi PC. Then booting that SD-card in an Orange Pi PC and do the first configuration. After that I shut down the Orange Pi PC and move the SD-card to my Beelink X2. It boots up and can be accessed via ssh and I can log in.

 

However the Beelink X2 runs sluggishly and keeps logging the error message:

[  236.047125] [cpu_freq] ERR:set cpu frequency to 1296MHz failed!
[  236.296762] [ARISC ERROR] :message process error
[  236.296794] [ARISC ERROR] :message addr   : f004b840
[  236.296816] [ARISC ERROR] :message state  : 5
[  236.296837] [ARISC ERROR] :message attr   : 2
[  236.296858] [ARISC ERROR] :message type   : 30
[  236.296879] [ARISC ERROR] :message result : ff

 

I am not sure how to proceed next. @tkaiser: Have you recieved your Beelink X2 yet?
 
Best Regards
Posted

I ran the command "armbianmonitor -u" with the following output on my Beelink X2:

root@orangepipc:~# armbianmonitor -u
/var/log/armhwinfo.log has been uploaded to http://sprunge.us/cQJN
Please post the URL in the Armbian forum where you've been asked for.

Posted

Thanks for your answer!  :)

 

It seems I don't have the file /boot/bin/beelinkx2.bin in my /boot/bin directory. The version of Armbian I am using is "Armbian_5.05_Orangepih3_Debian_jessie_3.4.110.raw" so it is only a few days old.

root@orangepipc:/boot# ls -al /boot/bin
total 1068
drwxr-xr-x 2 root root  4096 Mar  8 20:20 .
drwxr-xr-x 3 root root  4096 Apr  6 21:00 ..
-rw-r--r-- 1 root root 45936 Mar  8 20:18 aw-som-a20.bin
-rw-r--r-- 1 root root 50560 Mar  8 20:18 bananapi.bin
-rw-r--r-- 1 root root 50624 Mar  8 20:18 bananapilcd7.bin
-rw-r--r-- 1 root root 37052 Mar  8 20:18 bananapim2plus.bin
-rw-r--r-- 1 root root 50484 Mar  8 20:18 bananapipro.bin
-rw-r--r-- 1 root root 50500 Mar  8 20:18 bananapiprolcd7.bin
-rw-r--r-- 1 root root 46308 Mar  8 20:18 cubieboard2.bin
-rw-r--r-- 1 root root 46248 Mar  8 20:18 cubieboard2dual.bin
-rw-r--r-- 1 root root 43716 Mar  8 20:18 cubieboard.bin
-rw-r--r-- 1 root root 46404 Mar  8 20:18 cubietruck.bin
-rw-r--r-- 1 root root 51012 Mar  8 20:18 lamobo-r1.bin
-rw-r--r-- 1 root root 53480 Mar  8 20:18 lime2.bin
-rw-r--r-- 1 root root 43508 Mar  8 20:18 lime-a10.bin
-rw-r--r-- 1 root root 52616 Mar  8 20:18 lime.bin
-rw-r--r-- 1 root root 52252 Mar  8 20:18 micro.bin
-rw-r--r-- 1 root root 29804 Mar  8 20:18 olinux-som-a13.bin
-rw-r--r-- 1 root root 35896 Mar  8 20:18 orangepi2.bin
-rw-r--r-- 1 root root 50972 Mar  8 20:18 orangepi.bin
-rw-r--r-- 1 root root 35308 Mar  8 20:18 orangepilite.bin
-rw-r--r-- 1 root root 35304 Mar  8 20:18 orangepione.bin
-rw-r--r-- 1 root root 35916 Mar  8 20:18 orangepipc.bin
-rw-r--r-- 1 root root 37052 Mar  8 20:18 orangepiplus.bin
-rw-r--r-- 1 root root 49300 Mar  8 20:18 pcduino3nano.bin
root@orangepipc:/boot#

I downloaded "beelinkx2.fex" as per your instructions earlier in this thread. But when I try to run fex2bin i get:

root@orangepipc:/tmp# fex2bin beelinkx2.fex beelinkx2.bin
E: beelinkx2.fex:5: data must follow a section.
root@orangepipc:/tmp#

I understand you are not interested in the Beelink X2 for now but any pointers you might give I would be very happy to recieve!  :)

Posted

Update!

 

I managed to download the latest "beelinkx2.fex" from github. I converted it to .bin format and changed the link /boot/script.bin to point to beelinkx2.bin. No luck booting.

 

Then I tried a different approach. I converted my "orangepipc.bin" file to fex format. I changed only the [dvfs_table] section to what was in the "beelinkx2.fex" file and converted the file back to bin format. After adjusting the /boot/script.bin link to point to my new file the Beelink X2 booted happily and seems stable. I am happy for now!  :)

 

If anyone is interested I ran an "armbianmonitor -u":

root@orangepipc:~# armbianmonitor -u
/var/log/armhwinfo.log has been uploaded to http://sprunge.us/KCVY
Please post the URL in the Armbian forum where you've been asked for.

Posted

I converted my "orangepipc.bin" file to fex format. I changed only the [dvfs_table] section to what was in the "beelinkx2.fex" file and converted the file back to bin format. After adjusting the /boot/script.bin link to point to my new file the Beelink X2 booted happily and seems stable. I am happy for now!

 

That's interesting and an indication that my DRAM settings in the fex are wrong. But as already said: Will look into it not within the next few days/weeks.

Posted

Hi all,

 

I extracted the script.bin File from BeelinkX2 internal flash, but Armbian will not boot directly with it, so I had to change the u-boot config, I created some Patch files for u-boot and a conf file for the board, so the BeelinkX2 mostly boot directly, but not not at every start and a reboot will not work at the moment.

 

I will add the files I changed.

 

userpatches/u-boot/u-boot-default/configs-beelinkx2.patch

userpatches/u-boot/u-boot-default/dts-Makefile.patch

userpatches/u-boot/u-boot-default/sun8i-h3-beelinkx2.dts.patch

 

lib/config/boards/beelinkx2.conf

lib/config/beelinkx2.fex

 

This is just the beginning, there are many things to do, but I'm not a developer.

 

root@beelinkx2:~# armbianmonitor -u
/var/log/armhwinfo.log has been uploaded to http://sprunge.us/VhhL
Please post the URL in the Armbian forum where you've been asked for.

 

I didn't work with GIT yet, so I hope I have time in the next days to fork and work in this fork of your git reposytory.

 

br tpc010

u-boot-default.tar

beelinkx2.conf.gz

beelinkx2.fex.gz

beelinkx2-from-device.bin.gz

beelinkx2-from-device.fex.gz

Posted

I have a working version of Armbian 5.10:

 download here  [link updated 2016-05-07]

 

Working

  • Ethernet
  • USB ports (2)
  • HDMI w/ sound

Not working:

  • WiFi is missing
  • No sound via S/PDIF

Basically, I overwrite /boot/bin/beelinkx2.bin with the one from the blog post. I also manually link it to /boot/script.bin as /etc/init.d/firstrun is failing to detect that it is a Beelink X2 (/run/machine.id returns that it is a 'Orange Pi PC').

 

I think from this, somebody with a Beelink X2 should be able to figure out how to make Armbian work out of the box. I will look at this again next week if somebody hasn't already beat me to the punch.

 

This script should reproduce the image:

 

 

OS=Armbian_5.10_Orangepih3_Debian_jessie_3.4.112_desktop
RAW="${OS}.raw"
MNT=root

sudo apt-get install p7zip

wget http://nanospic.com/dld/beelink/uboot_beelink_x2.zip
unzip uboot_beelink_x2.zip
cd uboot_beelink_x2

wget "http://mirror.igorpecovnik.com/${OS}.7z"
/usr/bin/7zr e "${OS}.7z" "$RAW"

mkdir -p "$MNT"
sudo mount -t ext4 -o loop,offset=$((4096*512)) "$RAW" "$MNT"
sudo cp sys_config.bin "$MNT/boot/bin/beelinkx2.bin"
(cd "$MNT/boot"; sudo ln -sf bin/beelinkx2.bin script.bin)
sudo umount "$MNT"

Posted

I also manually link it to /boot/script.bin as /etc/init.d/firstrun is failing to detect that it is a Beelink X2 (/run/machine.id returns that it is a 'Orange Pi PC').

 

We implemented another ugly hack to deal with these situations. An

echo "Beelink X2" >/root/.machine.id

would prevent wrong auto detection when 'firstrun' script is running.

 

@Igor: Unfortunately I forgot that prior to 5.10 release since using this hack we (or better you ;) ) could've used loop device mounts of the Orange Pi H3 and Banana Pi/Pro image and overwrite auto detection stuff by adding device names to /root/.machine.id and duplicating images.

 

Maybe it's worth a try until we resolved the whole issue? At least for Orange Pi One and NanoPi M1 it would be useful since these are really affected somewhat negatively.

Posted

We can do some bugfix update within a week or so and include / add new (dedicated) images. We can do only H3 and A20 images.

Posted

We can do some bugfix update within a week or so and include / add new (dedicated) images. We can do only H3 and A20 images.

 

Sounds like a good idea. I already thought about delivering something like 'echo "real device" >/root/.machine.id' as part of board support packages so that users doing an 'apt-get upgrade' could also benefit from this hack. But this would require that we do another forced firstrun execution... Hmm...

Posted

I already thought about delivering something like 'echo "real device" >/root/.machine.id' as part of board support packages so that users doing an 'apt-get upgrade' could also benefit from this hack. But this would require that we do another forced firstrun execution... Hmm...

Storing $BOARD in a file on rootfs at build time (and it's better to store it in /etc rather than in /root) may be used to remove autodetection from armhwinfo to simplify this script, right now it's a mess that is better to touch with a long stick, and it will only grow more once we add new boards.

Putting this file in board support package should be enough for upgrading old images in this case.

Posted
echo "Beelink X2" >/root/.machine.id

would prevent wrong auto detection when 'firstrun' script is running.

 

@tkaiser: thanks for the tip--now motd is correct. :)  I have updated the Armbian 5.10 Beelink X2 image and re-uploaded: download here.

 

@Tido: thanks for the links. From the picture, I was able to identify the WiFi module as AP6181 with a Broadcom chipset. According to this forum topic, the chipset is also used by BPi-M2 and the proper module is brcmfmac. However, loading the module doesn't seem to do anything.

 

Another issue is that the internal eMMC doesn't not appear as /dev/mmcblk0 (SD card) or any device. Maybe this is because of the Android-derived config.bin.

 

At this point, I am at the end of my skill/knowledge level to push this image further. Maybe others with better skills can figure out what I can't. As is, it is quite usable and snappy.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines