Hello

Kurio 7S:
Processor:  A20
Ram: 1GB
NAND: 8GB

0. Check this:

Official site
Wiki sunxi
Google groups

1. Download (Cubian) and copy the card Cubian:

Cubian r8  

dd if=Cubian-base-r8-a10.img of=/dev/sd(your letter sdcard) bs=4096 ; sync

2. Download My compiled kernel :

Kernel.tar.gz
kernel.tar.gz (script.bin, uEnv.txt, kernel(uImage and lib), u-boot,):
Copy u-boot to sdcard
dd if=u-boot-sunxi-with-spl.bin of=/dev/sd(your letter sdcard) bs=1024 seek=8 ; sync
Copy kernel/lib to sdcard/lib
Copy kernel/uImage to sdcard/boot/uImage
Copy kernel/script.bin to sdcard/boot/script.bin
Copy kernel/uEnv.txt to sdcard/boot/uEnv.txt

3.Insert the card into the tablet and enjoy the Debian

user: cubie
pass: cubie
root:root
pass:(you change maybe user mode) $ sudo passd

4.Touchscreen, battery and right mouse button:

Touchscreen:

Edit linux-sunxi-sunxi-3.4/drivers/input/touchscreen/ft5x_ts.c
Removed the "IRQF_TRIGGER_FALLING |" line (1765) compiled kernel and now works

$sudo modprobe ft5x_ts

add ft5x_ts to /etc/modules

Battery:
Folder battery info cappacity,status, etc.
/sys/class/power_supply/battery/ 

Right mouse button:
Long hold on touchscreen

$sudo mkdir /etc/X11/xorg.conf.d
$sudo touch /etc/X11/xorg.conf.d/evdev.conf
$sudo vim  sudo mkdir /etc/X11/xorg.conf.d/evdev.conf

Section "InputClass"
        Identifier "Touchscreen"
        MatchProduct "ft5x_ts"
        Driver "evdev"
        Option "EmulateThirdButton" "1"
        Option "EmulateThirdButtonTimeout" "1000"
        Option "EmulateThirdButtonMoveThreshold" "30"
EndSection


Code lcd off and touchscreen
NUM_DEVICE check
$xinput | grep ft5x_ts 
Create power file and add keyboard shortcut to power button 
$sudo vim /usr/bin/power
 
#!/bin/bash
NUM_DEVICE=7
ENABLED=`xinput --list-props $NUM_DEVICE | grep "Device Enabled" | awk '{print $4}'`
if [ $ENABLED = 0 ]; then
        xinput enable $NUM_DEVICE
        xset dpms force on
else
        xinput disable $NUM_DEVICE
        xset dpms force off
fi
exit 0 


Brightness (PWM):
One of the ways that I know of to handle brightness.

Edit script.bin
Section
 
[lcd0_para]
...
lcd_pwm_not_used = 1
...
lcd_pwm_used = 0
...


add section

[pwm0_para]
pwm_used = 1
pwm_period = 10000
pwm_duty_percent = 100 


Now add module to kernel and compiled
Misc drivers->Sunxi pwm drivers(pwm-sunxi)

Modules
Script.bin
Module copy to 
/lib/modules/3.4.103/kernel/drivers/misc/pwm-sunxi.ko
Script.bin copy to /boot/script.bin

$sudo depmod
$sudo modprobe pwm-sunxi
$sudo su
#echo 50 > /sys/class/pwm-sunxi/pwm0/duty_percent


Contents /etc/modules
# Display and GPU
lcd
hdmi
ump
disp
mali
ft5x_ts
pwm-sunxi

2 thoughts on “Kurio 7S and Debian Wheezy (Cubian)

  1. It works a threat except that username/password are cubie/cubie not cubian/cubian. 🙂
    FINALLY a useful Kurio 7S.

  2. ok thx corrected and add to point 4

Share Your Thought