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

Linux Distributions for Orange PI H3 boards

  [Copy link]

0

threads

19

posts

111

credits

Registered member

Rank: 2

credits
111
Published in 2015-9-1 02:33:59 | Show all floors
Why I cannot connect to my ethernet? And why there there is my wireless card call rename7?
  1. orangepi@OrangePI:~$ ifconfig
  2. lo        Link encap:Local Loopback  
  3.           inet addr:127.0.0.1  Mask:255.0.0.0
  4.           inet6 addr: ::1/128 Scope:Host
  5.           UP LOOPBACK RUNNING  MTU:16436  Metric:1
  6.           RX packets:698 errors:0 dropped:0 overruns:0 frame:0
  7.           TX packets:698 errors:0 dropped:0 overruns:0 carrier:0
  8.           collisions:0 txqueuelen:0
  9.           RX bytes:57536 (57.5 KB)  TX bytes:57536 (57.5 KB)

  10. rename7   Link encap:Ethernet  HWaddr 00:e0:4c:f0:1d:8a  
  11.           inet addr:192.168.0.10  Bcast:192.168.0.255  Mask:255.255.255.0
  12.           inet6 addr: fe80::2e0:4cff:fef0:1d8a/64 Scope:Link
  13.           UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
  14.           RX packets:4574 errors:0 dropped:168 overruns:0 frame:0
  15.           TX packets:1257 errors:0 dropped:0 overruns:0 carrier:0
  16.           collisions:0 txqueuelen:1000
  17.           RX bytes:39558278 (39.5 MB)  TX bytes:1290654 (1.2 MB)

  18. wlan1     Link encap:Ethernet  HWaddr 02:e0:4c:f0:1d:8a  
  19.           UP BROADCAST MULTICAST  MTU:1500  Metric:1
  20.           RX packets:0 errors:0 dropped:242 overruns:0 frame:0
  21.           TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
  22.           collisions:0 txqueuelen:1000
  23.           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
Copy code

10

threads

448

posts

4465

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4465
 Author| Published in 2015-9-1 02:34:50 | Show all floors
blindpet replied at 2015-8-31 18:28
I thought that was the case, it seemed even after I removed the UBOOT parameters it still didn't li ...

The simplest way to build an image:

  • do not change anything (ubuntu vivid will be created, if you want different distro/release, just change distro and repo parameters)
  • run: sudo ./create_image
  • Ubuntu Vivid fs will be created in linux-vivid directory
  • ... if you need to, change anything you want in that directory, as root ...
  • run: sudo ./image_from_dir linux_vivid /dev/sdX to create bootable OPI SD Card
  • or
  • run: sudo ./image_from_dir linux_vivid my_opi_linux_image to create SDCard image
  • my_opi_linux_image.img, my_opi_linux_image.xz, and md5sum files will be created (if you don't need compressed xz archive, set _compress="no" in params.sh)
  • you can write the image to sd card: dd if=my_opi_linux_image.img of=/dev/sdX bs=1M oflag=direct
  • After cd card is created, mount 1st partition (VFAT, LABEL=BOOT) and copy uImage & script.bin according to yo board type

I don't see any reason why would you have to recompile 5 times.

If you want to install some packages, or do any configuration during the image creation, you can put your code into second_stage script.
It is executed in chrooted environment with qemu-arm-static arm emulation.
You can put your code (bash commands) before the line rm -Rf /boot/* >> $_LOGFILE 2>&1 in second_stage script.

Thermal management in the new kernel is much better, so no need for NO BUDGET COOLING option.


10

threads

448

posts

4465

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4465
 Author| Published in 2015-9-1 02:37:27 | Show all floors
alexparadise replied at 2015-8-31 19:33
Why I cannot connect to my ethernet? And why there there is my wireless card call rename7?

Probably the wrong script.bin selected.

10

threads

448

posts

4465

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4465
 Author| Published in 2015-9-1 02:39:44 | Show all floors
blindpet replied at 2015-8-31 19:24
On the /boot partition I deleted everything but the uImage_OPI-PLUS and renamed script.bin.OPI-PLUS_ ...

From the 1st post:
Copy uImage_OPI-2 or uImage_OPI-PLUS (depending on your board type) to uImage (for OPI-PC use uImage_OPI-2)

4

threads

47

posts

214

credits

Intermediate member

Rank: 3Rank: 3

credits
214
Published in 2015-9-1 02:41:25 | Show all floors
loboris replied at 2015-9-1 02:37
Probably the wrong script.bin selected.

Thanks, that will make things easier. Is script.bin necessary?

People will get unable to resolve hostname errors and it is because the hostname needs to be in /etc/hosts, perhaps you can add this to your script. After I added OrangePiPlus to /etc/hosts on 127.0.0.1 line after localhost it disappeared.

reboot command just shuts device off, what's up with that?

10

threads

448

posts

4465

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4465
 Author| Published in 2015-9-1 02:49:41 | Show all floors
Edited by loboris at 2015-8-31 20:07
blindpet replied at 2015-8-31 19:41
Thanks, that will make things easier. Is script.bin necessary?

People will get unable to resolve  ...

The script.bin IS necessary. Otherwise you have to build (and write to sdcard) separate u-boot for each board. It is much simpler to change the script.bin file.

You can put any additional network related command/configuration into set_network() subrutine in second_stage script.
I'll put the hostname into /etc/hosts in the next version of the script, thanks.

I've never had any problem with reboot command.

4

threads

47

posts

214

credits

Intermediate member

Rank: 3Rank: 3

credits
214
Published in 2015-9-1 03:05:27 | Show all floors
loboris replied at 2015-9-1 02:49
The script.bin IS necessary.
You can put any additional network related command/configuration into  ...

hmm, I must have a defective unit then, reboot just shuts my device off :/

Another issue, when trying to run Plex I get a funny error as if the distro can't see files with spaces in them

root@OrangePiPlus:/usr/lib/plexmediaserver# bash start.sh
start.sh: line 11: ./Plex Media Server: No such file or directory

The Plex Media Server file exists and the spaces are properly escaped in the start.sh file (it works on Raspberry Pi 2, Banana Pi etc)

10

threads

448

posts

4465

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4465
 Author| Published in 2015-9-1 03:09:30 | Show all floors
blindpet replied at 2015-8-31 20:05
hmm, I must have a defective unit then, reboot just shuts my device off :/

Another issue, when tr ...

You have to put file names with spaces in quotes "Plex Media Server"

4

threads

47

posts

214

credits

Intermediate member

Rank: 3Rank: 3

credits
214
Published in 2015-9-1 03:20:30 | Show all floors
loboris replied at 2015-9-1 03:09
You have to put file names with spaces in quotes "Plex Media Server"

Thanks but I tried that, it makes no difference. This method has worked on every arm7 device on Debian Wheezy and Jessie so something is up.

Another question, why does blkid output so many partitions?

  1. <div><div>/dev/mmcblk0: PTUUID="779eb776" PTTYPE="dos"</div><div>/dev/mmcblk0p1: LABEL="BOOT" UUID="480C-D2F8" TYPE="vfat" PARTUUID="779eb776-01"</div><div>/dev/mmcblk0p2: LABEL="linux" UUID="4e81b8e2-a257-4ffe-bfc1-3327bf109dee" TYPE="ext4" PARTUUID="779eb776-02"</div><div>/dev/mmcblk1: PTTYPE="dos"</div><div>/dev/mmcblk1p1: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"</div><div>/dev/mmcblk1p2: SEC_TYPE="msdos" LABEL="Volumn" TYPE="vfat"</div><div>/dev/mmcblk1p7: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"</div><div>/dev/mmcblk1p11: LABEL="PRIVATE" UUID="CE63-07B2" TYPE="vfat"</div><div>/dev/mmcblk1p12: SEC_TYPE="msdos" UUID="F06F-07B2" TYPE="vfat"</div><div>/dev/mmcblk1p16: UUID="57f8f4bc-abf4-655f-bf67-946fc0f9f25b" TYPE="ext4"</div></div><div></div>
Copy code



10

threads

448

posts

4465

credits

Moderator

Rank: 7Rank: 7Rank: 7

credits
4465
 Author| Published in 2015-9-1 03:33:58 | Show all floors
Edited by loboris at 2015-8-31 20:40
blindpet replied at 2015-8-31 20:20
Thanks but I tried that, it makes no difference. This method has worked on every arm7 device on De ...

Spaces in names has nothing to do with cpu architecture or board, type, so it cannot be something OPI specific.

mmcblk1
partitions are android partitions on emmc. Allwinner has very weird android partition layout, not to mention that almost 2 GB are waisted for nothing.

You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list