cloudshell display

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
duc

cloudshell display

Post by duc »

hi all,

i have dietpi 0.97 running on my odroid xu4 and i have a cloudshell case.
after installing the software everthing was fine, including the small display.

now i tried to mount my usb disks, but i couldn't mount because the running kernel doesn't have xfs support.
see bugreport Reference CODE: 001e06300ee9-1.

to solve the problem, i downloaded the kernel sources from hardkernel (git clone --depth 1 https://github.com/hardkernel/linux.git -b odroidxu3-3.10.y) and compiled a kernel with xfs support.
after installing the new kernel with xfs support, everything works fine, i can mount my disks, but now the display in my cloudshell case keeps dark.

my question is, do you use a special kernel version for this display?
any ideas why the display doesn't work now?
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: cloudshell display

Post by Fourdee »

duc wrote: my question is, do you use a special kernel version for this display?
any ideas why the display doesn't work now?
Hi Duc,

DietPi for Odroid XU4 is based on Meveric's image. No idea what the compile options are for the kernel. However, when I upgrade the kernel from his repo, my cloudshell breaks also.

I'am having similar problems with the official HK images. It looks like the kernel is missing a compile option that is required for cloudshell display.
Please see my post here: http://forum.odroid.com/viewtopic.php?f=99&t=16918
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.
duc

Re: cloudshell display

Post by duc »

solved

i tried this and now my display works again

Code: Select all

sudo -s
echo "options fbtft_device name=hktft9340 busnum=1 rotate=270" > /etc/modprobe.d/odroid-cloudshell.conf
echo "spi_s3c64xx" >> /etc/modules
echo "fbtft_device" >> /etc/modules
http://odroid.com/dokuwiki/doku.php?id= ... lcd_config
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: cloudshell display

Post by Fourdee »

duc wrote:solved

i tried this and now my display works again

Code: Select all

sudo -s
echo "options fbtft_device name=hktft9340 busnum=1 rotate=270" > /etc/modprobe.d/odroid-cloudshell.conf
echo "spi_s3c64xx" >> /etc/modules
echo "fbtft_device" >> /etc/modules
http://odroid.com/dokuwiki/doku.php?id= ... lcd_config
Yep: http://forum.odroid.com/viewtopic.php?f ... 18#p110590
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.
duc

Re: cloudshell display

Post by duc »

another question. how can i use this little display script (dietpi_cloudshell) on another distro?
i tried to install openmediavault at dietpi, without success. now i wil ltry to get the display running at omv.
any hints?

http://forum.odroid.com/viewtopic.php?f=98&t=14907
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: cloudshell display

Post by Fourdee »

duc wrote:another question. how can i use this little display script (dietpi_cloudshell) on another distro?
i tried to install openmediavault at dietpi, without success. now i wil ltry to get the display running at omv.
any hints?

http://forum.odroid.com/viewtopic.php?f=98&t=14907
Hi Duc,

DietPi-Cloudshell is only available and supported for DietPi images. This is because i've coded DietPi-Cloudshell to integrate with a DietPi system (eg: usb mounts, dietpi version/info etc). You are free however, to modify the sourcecode to work with non-DietPi systems.

Here is how we launch DietPi-Cloudshell after automatic login: https://github.com/Fourdee/DietPi/blob/ ... #L103-L117

Not heard of openmediavault. What issues did you experience?
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.
duc

Re: cloudshell display

Post by duc »

thank you, i will check this out.
openmediafault is something like freenas. a pretty good web based administation tool. maybe it's better to integrate it in dietpi, don't know?

btw. dietpi-cloudshell displays only the first usb disk. i have a external 4bay usb case from fantec connected, in the cloudshell case i have no disk. but i see only the first drive...
User avatar
Fourdee
Site Admin
Posts: 2788
Joined: Tue Feb 06, 2007 1:36 pm

Re: cloudshell display

Post by Fourdee »

duc wrote:thank you, i will check this out.
openmediafault is something like freenas. a pretty good web based administation tool. maybe it's better to integrate it in dietpi, don't know?

btw. dietpi-cloudshell displays only the first usb disk. i have a external 4bay usb case from fantec connected, in the cloudshell case i have no disk. but i see only the first drive...
DietPi was designed to allow for 1 dedicated external USB drive. This allows us to use /dev/sda1 as the mount point. If you want to add more drives, you will need to edit /etc/fstab and use UUID's for each drive.

As for DietPi-Cloudshell, the same applies, it only expects 1 USB drive and has been designed around that system.
You can change which drive/mount DietPi-Cloudshell shows stats for: Line 3 of /DietPi/dietpi/.dietpi-cloudshell

I'll take a look at openmediavault and see if we can create an optimized installation for it.
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.
duc

Re: cloudshell display

Post by duc »

it works :)

i copied the /Dietpi/dietpi folder to my omv installation and start dietpi_cloudshell via .profile of user root.

with a few changes in dietpi_cloudshell it displays the total disk size and so on.

Code: Select all

	
        STORAGE_USB_PATH_1="/dev/sdb1"
	STORAGE_USB_PATH_2="/dev/sdc1"
	STORAGE_USB_PATH_3="/dev/sdd1"


	Obtain_STORAGE(){

		#RPi
		if (( $HW_MODEL < 10 )); then
			STORAGE_FLASH_PATH="/dev/root"
		#Odroid
		elif (( $HW_MODEL >= 10 )) && (( $HW_MODEL < 20 )); then
			STORAGE_FLASH_PATH="/dev/mmcblk0p3"
		#VM
		elif (( $HW_MODEL == 20 )); then
			STORAGE_FLASH_PATH="/dev/sda1"
		fi

		TEMP_FILE="/tmp/.df"
		df -h > $TEMP_FILE

		STORAGE_FLASH_TOTAL="$( cat $TEMP_FILE | grep $STORAGE_FLASH_PATH | awk '{print $2}')B"
		STORAGE_FLASH_USED="$( cat $TEMP_FILE | grep $STORAGE_FLASH_PATH | awk '{print $3}')B"
		STORAGE_FLASH_FREE="$( cat $TEMP_FILE | grep $STORAGE_FLASH_PATH | awk '{print $4}')B"
		STORAGE_FLASH_PERCENT=$( cat $TEMP_FILE | grep $STORAGE_FLASH_PATH | awk '{print $5}' | sed 's/%//g')

		Percent_To_Graph $STORAGE_FLASH_PERCENT
		STORAGE_FLASH_PERCENT=$C_PERCENT_GRAPH

		#renew temp_file with disk data 
		df -hl --total $STORAGE_USB_PATH_1 $STORAGE_USB_PATH_2 $STORAGE_USB_PATH_3  > $TEMP_FILE
		
		#check for USB mount
		if (( $(cat $TEMP_FILE | grep -ci -m1 'total' ) == 1 )); then
			STORAGE_USB_TOTAL="$( cat $TEMP_FILE | grep 'total' | awk '{print $2}')B"
			STORAGE_USB_USED="$( cat $TEMP_FILE | grep 'total' | awk '{print $3}')B"
			STORAGE_USB_FREE="$( cat $TEMP_FILE | grep 'total' | awk '{print $4}')B"
			STORAGE_USB_PERCENT=$( cat $TEMP_FILE | grep 'total' | awk '{print $5}' | sed 's/%//g')

			Percent_To_Graph $STORAGE_USB_PERCENT
			STORAGE_USB_PERCENT=$C_PERCENT_GRAPH
		else
thank you very much for your help.
jgranado

Re: cloudshell display

Post by jgranado »

duc wrote:hi all,

i have dietpi 0.97 running on my odroid xu4 and i have a cloudshell case.
after installing the software everthing was fine, including the small display.

now i tried to mount my usb disks, but i couldn't mount because the running kernel doesn't have xfs support.
see bugreport Reference CODE: 001e06300ee9-1.

to solve the problem, i downloaded the kernel sources from hardkernel (git clone --depth 1 https://github.com/hardkernel/linux.git -b odroidxu3-3.10.y) and compiled a kernel with xfs support.
after installing the new kernel with xfs support, everything works fine, i can mount my disks, but now the display in my cloudshell case keeps dark.

my question is, do you use a special kernel version for this display?
any ideas why the display doesn't work now?
Hi!

I have the same problem, i can't read xfs file system, please duc, can you share your xfs compatible kernel?

Thx.

PD: I have the orange pi PC
Post Reply