Building our own OrangePi image?

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
User avatar
WarHawk
Posts: 610
Joined: Thu Jul 20, 2017 8:55 am

Building our own OrangePi image?

Post by WarHawk »

Is it authorized to download the stretch version of an image from Armbian...then run the prep script to build our own dietpi V6.4?

I downloaded the Armbian Debian_stretch_next for Orange Pi Zero
Installed it...got it working (took me several tries...uggh), did a full apt update and upgrade (it updated the kernel from the stretch repository)
Then ran the dietpi prep script...it took a LOOOOOONG time...but built a dietpi V6.2 which then upgraded to V6.4, currently working VERY well and stable

Is that a viable and correct way to build a dietpi image for those if we do it ourselves rather than the dietpi team?

For the life of me I could not get a Debian stretch build on the OPiZero... (I guess mainly because it needs user interaction to install?!??)[or I just don't know what pre-load script I should use]

Just wanting to know if this is a viable/legal/whatever method to build our own images
bronco
Posts: 11
Joined: Sun Mar 11, 2018 9:33 am

Re: Building our own OrangePi image?

Post by bronco »

WarHawk wrote:Then ran the dietpi prep script...it took a LOOOOOONG time...
Then your SD card is too slow. If such a task like deleting a lot of packages takes a 'LOOOOOONG' time this is an indication that random IO storage performance is too low. Unfortunately the speed tests DietPi has included test only for irrelevant sequential performance.

Oversimplified: Sequential performance is important when you store pictures or video on your SD card (the 'camera' use case), random IO performance is important when running an operating system from SD card (the 'single board computer' use case).

I bet if you replace your SD card with a cheap SanDisk Ultra A1 then such tasks that now take that 'LOOOOOONG' will finish almost instantly afterwards since those new A1 rated SD cards are usually at least 100 times faster than old SD cards when it's about random IO with small chunks of data.

Check Jeff Geerling's numbers, notes and testing methodology: https://www.jeffgeerling.com/blogs/jeff ... crosd-card (the interesting stuff starts with 'iozone 4K Random read/write')
User avatar
WarHawk
Posts: 610
Joined: Thu Jul 20, 2017 8:55 am

Re: Building our own OrangePi image?

Post by WarHawk »

bronco wrote:
WarHawk wrote:Then ran the dietpi prep script...it took a LOOOOOONG time...
Then your SD card is too slow. If such a task like deleting a lot of packages takes a 'LOOOOOONG' time this is an indication that random IO storage performance is too low. Unfortunately the speed tests DietPi has included test only for irrelevant sequential performance.

Oversimplified: Sequential performance is important when you store pictures or video on your SD card (the 'camera' use case), random IO performance is important when running an operating system from SD card (the 'single board computer' use case).

I bet if you replace your SD card with a cheap SanDisk Ultra A1 then such tasks that now take that 'LOOOOOONG' will finish almost instantly afterwards since those new A1 rated SD cards are usually at least 100 times faster than old SD cards when it's about random IO with small chunks of data.

Check Jeff Geerling's numbers, notes and testing methodology: https://www.jeffgeerling.com/blogs/jeff ... crosd-card (the interesting stuff starts with 'iozone 4K Random read/write')
Roger that....ordered 2-16GB A1's
When I get them in will shutdown -h now, image the drive with Win32 Disk Imager then re-write to new card and see how well it does

a 'LOOOOOONG' time on the class 10 was about 20-30 minutes...so not 'that' long...just felt that way when I was up past my bed time....

I do know when I burned the image to the disk...it was telling me it was getting around 17-18MB's
bronco
Posts: 11
Joined: Sun Mar 11, 2018 9:33 am

Re: Building our own OrangePi image?

Post by bronco »

WarHawk wrote:I do know when I burned the image to the disk...it was telling me it was getting around 17-18MB's
That's sequential IO (writing a large file to card) but that's not happening that much or any more as soon as you start an OS from the SD card. Then it's all about random IO. Quoting Jeff Geerling (who did pioneer work here in SBC land):
There is an order-of-magnitude difference between most cheap cards and the slightly-more-expensive ones (even if both are rated as being in the same class)
Look at his numbers: https://www.jeffgeerling.com/blogs/jeff ... crosd-card

The hdparm and dd numbers show sequential performance while the 4K rand columns show random IO performance. With sequential workloads (storing pictures or videos on SD card, writing a whole OS image to it) the differences between fast and slow cards are close to irrelevant but with random IO (accessing small files, updating filesystem structures, accessing databases and similar 'common Linux tasks') those fast and new A1 rated cards show magnitudes higher performance :)
bronco
Posts: 11
Joined: Sun Mar 11, 2018 9:33 am

Re: Building our own OrangePi image?

Post by bronco »

WarHawk wrote:ordered 2-16GB A1's
When I get them in will shutdown -h now, image the drive with Win32 Disk Imager then re-write to new card and see how well it does
If you really want to see how well the A1 cards perform you might need to start again with the Stretch image you used in the beginning and then let the prep script run again. This should finish magnitudes faster now. But why using Win32 Disk Imager? This tool doesn't catch errors that happen from time to time when writing an OS image to SD card. Doesn't DietPi recommend Etcher that implements verify after write?
User avatar
WarHawk
Posts: 610
Joined: Thu Jul 20, 2017 8:55 am

Re: Building our own OrangePi image?

Post by WarHawk »

Haven't checked if Etcher reads images from SD cards...I'll definitely look though
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: Building our own OrangePi image?

Post by Fourdee »

WarHawk wrote: Just wanting to know if this is a viable/legal/whatever method to build our own images
Hi,

Being open source, you can use any pre-image you like. You can also host the images (unofficially) you create anywhere you like.

The only thing we wont allow, is for any ARMbian based images to be hosted on diet.com.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: Building our own OrangePi image?

Post by k-plan »

Fourdee wrote: You can also host the images (unofficially) you create anywhere you like.
Really?

Can I get support from DietPi here?

Or from ARMbian? I have use their offical image , so where is my support?

It will be a "offical DietPi " image. Have a look:

Code: Select all

───────────────────────────────────────
 DietPi     | Update available
 ───────────────────────────────────────
 v6.2       | OrangePi One (armv7l)
 ───────────────────────────────────────
 IP eth0    | 192.168.0.100
 ───────────────────────────────────────

 Created by : Daniel Knight
 Web        : http://DietPi.com
 Twitter    : http://twitter.com/dietpi_
 Donate     : http://goo.gl/pzISt9
 DietPi's web hosting is powered by: MyVirtualServer.com

 dietpi-launcher  = All the DietPi programs in one place.
 dietpi-config    = Feature rich configuration tool for your device.
 dietpi-software  = Select optimized software for installation.
 dietpi-update    = Run now to update DietPi (from v6.2 to v6.4).
 htop             = Resource monitor.
 cpu              = Shows CPU information and stats.

root@OrangePi-One:~#
I read here:
Created by : Daniel Knight
Web : http://DietPi.com
I can't find any hints that it is a unofficial image. It looks like all my other DietPi installations ...
Have download it from the web.

Come on, boys and girls ... I need help, my Kodi is not working, my wifi loose connection and I have no sound.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
User avatar
WarHawk
Posts: 610
Joined: Thu Jul 20, 2017 8:55 am

Re: Building our own OrangePi image?

Post by WarHawk »

Fourdee wrote:
WarHawk wrote: Just wanting to know if this is a viable/legal/whatever method to build our own images
Hi,

Being open source, you can use any pre-image you like. You can also host the images (unofficially) you create anywhere you like.

The only thing we wont allow, is for any ARMbian based images to be hosted on diet.com.
Roger that..maybe a writeup/howto for those people who want those images should be created so people can still enjoy Dietpi, but have to build them themselves. (and learn a little along the way ;) )

I already "tweaked" my build...I should probably just go ahead and create a "stock" image for others to use

Code: Select all

 ───────────────────────────────────────
 DietPi     | 22:04 | Tue 13/03/18
 ───────────────────────────────────────
 v6.4       | OrangePi Zero (armv7l)
 ───────────────────────────────────────
 eth0       | 192.168.0.98
 ───────────────────────────────────────

 Created by : Daniel Knight
 Web        : http://DietPi.com
 Twitter    : http://twitter.com/dietpi_
 Donate     : http://goo.gl/pzISt9
 DietPi's web hosting is powered by: MyVirtualServer.com

 dietpi-launcher  = All the DietPi programs in one place.
 dietpi-config    = Feature rich configuration tool for your device.
 dietpi-software  = Select optimized software for installation.
 htop             = Resource monitor.
 cpu              = Shows CPU information and stats.
And yeah...unfortunately...there will probably be no support from either community save for basic issues...but I am effective enough at Linux to pick my way thru most problems (Google is my friend in those situations )
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: Building our own OrangePi image?

Post by k-plan »

WarHawk wrote:...I should probably just go ahead and create a "stock" image for others to use
Can I get support from you for this image published by you?

How does it looks?
───────────────────────────────────────
DietPi | 22:04 | Tue 13/03/18
───────────────────────────────────────
v6.4 | OrangePi Zero (armv7l)
───────────────────────────────────────
eth0 | 192.168.0.98
───────────────────────────────────────

Created by : John Doe (WarHawk)
Web : http:// WarHawk.net

Device image possible thanks to: ARMbian and DietPi
:?:
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
Post Reply