December 8, 2016

Orange Pi PC - Armbian

I found an Armbian download.
7za e Armbian_5.20_Orangepipc_Debian_jessie_3.4.112.7z 
1 file, 313958747 bytes (300 MiB)
Extracting archive: Armbian_5.20_Orangepipc_Debian_jessie_3.4.112.7z
Everything is Ok                                          
Files: 5
Size:       1562398576
Compressed: 313958747

[tom@trona Armbian]$ ls -al
total 1832408
drwxrwxr-x 2 tom tom       4096 Dec  8 21:39 .
drwxrwxr-x 8 tom tom       4096 Dec  8 21:37 ..
-rw-rw-r-- 1 tom tom  313958747 Dec  8 16:36 Armbian_5.20_Orangepipc_Debian_jessie_3.4.112.7z
-rw-r--r-- 1 tom tom 1562378240 Sep 14 22:33 Armbian_5.20_Orangepipc_Debian_jessie_3.4.112.img
-rw-r--r-- 1 tom tom        819 Sep 14 22:33 Armbian_5.20_Orangepipc_Debian_jessie_3.4.112.img.asc
-rw-r--r-- 1 tom tom      18582 Sep 14 22:33 armbian.txt
-rw-r--r-- 1 tom tom        819 Sep 14 22:33 armbian.txt.asc
-rw-r--r-- 1 tom tom        116 Sep 14 22:33 sha256sum

umount /dev/sdc1
umount /dev/sdc2
dd if=Armbian_5.20_Orangepipc_Debian_jessie_3.4.112.img of=/dev/sdc bs=10k
52576+0 records in
152576+0 records out
1562378240 bytes (1.6 GB, 1.5 GiB) copied, 278.965 s, 5.6 MB/s
I put the card in the machine and apply power:
U-Boot SPL 2016.09-armbian (Sep 15 2016 - 07:28:57)
DRAM: 1024 MiB
Trying to boot from MMC1

U-Boot 2016.09-armbian (Sep 15 2016 - 07:28:57 +0200) Allwinner Technology

CPU:   Allwinner H3 (SUN8I 1680)
Model: Xunlong Orange Pi PC
I2C:   ready
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   phy interface0
eth0: ethernet@1c30000
Hit any key to stop autoboot:  0 
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
2886 bytes read in 154 ms (17.6 KiB/s)
## Executing script at 43100000
gpio: pin PL10 (gpio 298) value is 1
gpio: pin PG11 (gpio 203) value is 1
0 bytes read in 111 ms (0 Bytes/s)
** File not found /boot/.next **
** Unrecognized filesystem type **
** File not found .next **
36192 bytes read in 421 ms (83 KiB/s)
3114518 bytes read in 319 ms (9.3 MiB/s)
5025168 bytes read in 463 ms (10.4 MiB/s)
## Loading init Ramdisk from Legacy Image at 43300000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    3114454 Bytes = 3 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
Using machid 0x1029 from environment

Starting kernel ...

[sun8i_fixup]: From boot, get meminfo:
	Start:	0x40000000
	Size:	1024MB
....
....
Debian GNU/Linux 8 orangepipc ttyS0

orangepipc login: root
Password: 
Wow! The SPL was built in 2016, only 2 months ago. And U-boot mentions eth0 !!

I login as root with password "1234" and am immediately forced to change the password, which is fine. Then I am forced to create a first user and answer a bunch of questions. I connect a network cable and reboot, and I am on the network! Cool.

Linux orangepipc 3.4.112-sun8i #14 SMP PREEMPT Wed Sep 14 20:29:31 CEST 2016 armv7l

eth0      Link encap:Ethernet  HWaddr f2:da:d5:82:06:1c  
          inet addr:192.168.0.27  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::f0da:d5ff:fe82:60c1/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:40 errors:0 dropped:0 overruns:0 frame:0
          TX packets:36 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:4181 (4.0 KiB)  TX bytes:3756 (3.6 KiB)
          Interrupt:114 
All in all, it is pretty impressive. It is running sshd (and ntp with the correct time). We have vim, perl, python, and gcc. No ruby. So lets give apt-get a whirl!
apt-get update
apt-get ruby
This seems to get me ruby 2.1 -- nice that apt-get is all set up and ready to go.
ruby --version
ruby 2.1.5p273 (2014-11-13) [arm-linux-gnueabihf]
Amazing!


Have any comments? Questions? Drop me a line!

Tom's electronics pages / tom@mmto.org