Author Topic: Buster, Xenial and Bionic - updated 6.7.2019  (Read 732759 times)

Offline castalla

  • Developer
  • Full Member
  • ***
  • Posts: 106
  • Karma: +3/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
« Reply #705 on: July 16, 2014, 10:58:59 am »
Why? Because it's good to have some visual sign of booting which ended later on with this script.

 

I'd guess that many of the users, who run the CT headless, don't need LCD,HDMI,IR,LED,Bluetooth,DAC,SPDIF,WLAN.... to be turned on. Yep. It's all "on" by default.

I strongly recommend to other users:

Turn everything off that you don't need on your machine. On my headless server setup I turned the majority of HW features off and removed the corresponding modules from /etc/modules.

Enjoy.

Okay - how do we turn off the hardware features, such as LCD, etc ????

Offline soundcheck

  • Jr. Member
  • **
  • Posts: 78
  • Karma: +0/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
« Reply #706 on: July 16, 2014, 11:24:55 am »
For SD:

I assume you know how to work with vi

Code: [Select]
cd /boot
cp ct-hdmi.bin ct-hdmi.bin.orig
bin2fex ct-hdmi.bin ct-hdmi.fex
vi ct-hdmi.fex

Now you'll find blocks for each HW feature
e.g.
"leds_used = 1"

The ones you want to disable you change to "0".

You save the file and exit.

Now you have to convert the fex back to bin .

Code: [Select]
fex2bin ct-hdmi.fex ct-hdmi.bin
shutdown -r 0

Here we go.

On Nand you have to mount /dev/nand1 first. There is no /boot !

Code: [Select]
mount /dev/nand1 /mnt
cd /mnt
....same as above (no cd /boot and use script.bin/fex instead of ct-hdmi.bin/fex)

To get a nice overview of enabled/disabled features type :

Code: [Select]
grep -i  "used =" /boot/ct-hdmi.fex


Good luck.
« Last Edit: July 16, 2014, 11:33:25 am by soundcheck »

Offline castalla

  • Developer
  • Full Member
  • ***
  • Posts: 106
  • Karma: +3/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
« Reply #707 on: July 16, 2014, 01:14:16 pm »
For SD:

I assume you know how to work with vi

Code: [Select]
cd /boot
cp ct-hdmi.bin ct-hdmi.bin.orig
bin2fex ct-hdmi.bin ct-hdmi.fex
vi ct-hdmi.fex

Now you'll find blocks for each HW feature
e.g.
"leds_used = 1"

The ones you want to disable you change to "0".

You save the file and exit.

Now you have to convert the fex back to bin .

Code: [Select]
fex2bin ct-hdmi.fex ct-hdmi.bin
shutdown -r 0

Here we go.

On Nand you have to mount /dev/nand1 first. There is no /boot !

Code: [Select]
mount /dev/nand1 /mnt
cd /mnt
....same as above (no cd /boot and use script.bin/fex instead of ct-hdmi.bin/fex)

To get a nice overview of enabled/disabled features type :

Code: [Select]
grep -i  "used =" /boot/ct-hdmi.fex


Good luck.

Thanks.

Offline mno

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
« Reply #708 on: July 16, 2014, 05:19:28 pm »
after upgrading the kernel I have two folders in /lib/modules (in my case 3.4.79-sun7i+  3.4.98-sun7i+).
Can I remove the one of the old kernel?
Think you could add it on your homepage to the upgrading info box.

edit: where can I find the uEnv file? Can't find it :/
« Last Edit: July 16, 2014, 05:41:03 pm by mno »

Offline slovenia

  • Hero Member
  • *****
  • Posts: 511
  • Karma: +47/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
« Reply #709 on: July 17, 2014, 05:03:34 am »
Quote
But then, you need to compile Logitech patched flac,faad,sox binaries manually.

well, this should not be a problem. Probably you need to do that on some other arm boards?

Quote
Your high "commit" value in fstab seemed to cause some corruptions, when running LMS.
I had to take that out.

 ??? Sure about this? We noticed corruptions and instability in various ways when the board was over clocked. Have you checked that too?

Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

Offline slovenia

  • Hero Member
  • *****
  • Posts: 511
  • Karma: +47/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
« Reply #710 on: July 17, 2014, 05:05:05 am »
after upgrading the kernel I have two folders in /lib/modules (in my case 3.4.79-sun7i+  3.4.98-sun7i+).
Can I remove the one of the old kernel?
Think you could add it on your homepage to the upgrading info box.

edit: where can I find the uEnv file? Can't find it :/

uEnv files are in /boot

yes: deleting old kernel files
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

Offline tija

  • Newbie
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
« Reply #711 on: July 17, 2014, 05:21:35 am »
are there any chances to see an headless image from you with Kernel >= 3.14?

Because for my usecase DVB-S Streaming Server I don't need a display but working dvb-s2 drivers ;)

I don't want to bother someone just for me to know as I'm not good in self-compiling kernels ;)


Offline morsch9

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
« Reply #713 on: July 17, 2014, 06:16:04 am »
thanks for the project  ;D

which files must remain on the SD card if I use a HDD?
"Install to sata" I do not want to use because all files are deleted.

Currently I have the SD completely mirrored to the HDD and modified the uEnv.txt on SD

Offline rose28357

  • Hero Member
  • *****
  • Posts: 567
  • Karma: +28/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
« Reply #714 on: July 17, 2014, 06:53:00 am »
Currently I have the SD completely mirrored to the HDD and modified the uEnv.txt on SD
We simply copy rootfs to hhd. That means we copy the content of the 2. Partition. Just leave the 1. Partition on sdcard which is only used during boottime.

Offline soundcheck

  • Jr. Member
  • **
  • Posts: 78
  • Karma: +0/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
« Reply #715 on: July 17, 2014, 08:51:44 am »
Slovenia.

You went even further down with the CPU clock?? Now it's 960000 instead of 1010000 ?

Any reason for that?

I tested the LMS several times. And the db always got corrupted. Not the image itself though!

Without the commit, everything worked fine. At that time I did not go down with the clock.
And I was also running the "performance" govenor by default.

I might try it with the lower CPU speed.

Cheers

Offline morsch9

  • Newbie
  • *
  • Posts: 2
  • Karma: +0/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
« Reply #716 on: July 17, 2014, 09:42:10 am »
Currently I have the SD completely mirrored to the HDD and modified the uEnv.txt on SD
We simply copy rootfs to hhd. That means we copy the content of the 2. Partition. Just leave the 1. Partition on sdcard which is only used during boottime.

Thanks but i have only one parition  ::)

Offline slovenia

  • Hero Member
  • *****
  • Posts: 511
  • Karma: +47/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
« Reply #717 on: July 17, 2014, 09:47:47 am »
are there any chances to see an headless image from you with Kernel >= 3.14?

Because for my usecase DVB-S Streaming Server I don't need a display but working dvb-s2 drivers ;)

I don't want to bother someone just for me to know as I'm not good in self-compiling kernels ;)

I made few test compilations and that's about it. I hope I will manage to push out at least some test distro before going to vacations :)

@soundcheck

No, I went down to 1.010000 ...

Quote
I might try it with the lower CPU speed.

It's good to be sure about the reason. My Cubie system is also quite resilient and doesn't produce troubles if O.C. but people report them.
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

Offline mno

  • Newbie
  • *
  • Posts: 17
  • Karma: +0/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
« Reply #718 on: July 17, 2014, 02:22:33 pm »
after upgrading the kernel I have two folders in /lib/modules (in my case 3.4.79-sun7i+  3.4.98-sun7i+).
Can I remove the one of the old kernel?
Think you could add it on your homepage to the upgrading info box.

edit: where can I find the uEnv file? Can't find it :/

uEnv files are in /boot

yes: deleting old kernel files

thanks, problem is: in /boot the only file I could find was/is uImage. What can I do?

« Last Edit: July 17, 2014, 02:25:25 pm by mno »

Offline slovenia

  • Hero Member
  • *****
  • Posts: 511
  • Karma: +47/-0
    • View Profile
Re: Wheezy server for SD, SATA or NAND with hotspot & BT - update 11.7.2014
« Reply #719 on: July 17, 2014, 02:26:39 pm »
after upgrading the kernel I have two folders in /lib/modules (in my case 3.4.79-sun7i+  3.4.98-sun7i+).
Can I remove the one of the old kernel?
Think you could add it on your homepage to the upgrading info box.

edit: where can I find the uEnv file? Can't find it :/

uEnv files are in /boot

yes: deleting old kernel files

thanks, problem is: in /boot the only file I could find was/is uImage. What can I do?

Are you using my image?

If yes. Have you transferred system to NAND maybe? In that case boot files are on the first NAND partition /dev/nand1

If no. There is an extra boot partition.
« Last Edit: July 17, 2014, 02:28:28 pm by slovenia »
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com