[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: [linux-sunxi] Backporting simplefb support to 3.16 kernel



Karsten Merker <merker@debian.org> writes:

> On Fri, Mar 06, 2015 at 12:52:01PM +0100, Jens Thiele wrote:
>
>> Does that mean there is a realistic chance to have Olimex A20-Olinuxino
>> Micro+simplefb support in jessie (maybe not A20-OLinuXino-LIME2)?
>
> General support for the LIME2 in Jessie is on the way. Kernel support
> for it is in the linux 3.16.7-ckt7-1 package which will hopefully
> enter Jessie this weekend; installer support has already migrated to
> Jessie, just u-boot is still an open topic - I have backported
> support for the LIME2 to u-boot 2014.10+dfsg1-3, but that is
> currently only available in unstable.
>
> I will update the wiki accordingly as soon as the kernel migration is
> finished.

wow, great! thanks a lot!
will have to test then (if usb works - see also other mail).

>> That would be really great (somehow didn't expect that, but I didn't
>> look at the diff from 3.16). Last time I looked u-boot in testing/jessie
>> was to old, too. Did someone look at that, too?
>
> See above - u-boot 2014.10+dfsg1-3 in unstable has backported system
> support for the LIME2, but it does not contain a backport of the
> simplefb infrastructure bits, so for using simplefb, you would still
> need a newer upstream u-boot in any case.
>
>> 4.2 U-Boot
>> 
>> To boot the Linux kernel the boot loader "Das U-Boot" is used. U-Boot's state
>> is similar to the kernel's. Debian's U-Boot package can't be used, yet. Also
>> thanks to the sunxi community it became possible to use a U-Boot version very
>> close to upstream^20.
>
> Why "very close to upstream"? AFAICS current upstream u-boot supports
> everything you need, doesn't it?

afair, at the time i wrote that it didn't / i had troubles with
"Unknown command 'part'"
likely this was fixed some time ago,
s.a. Message-ID: <54D607AD.7020302@redhat.com>
"
You need the attached patch for upstream u-boot/master to work on sunxi
devices, this should get merged upstream soon.

From: Hans de Goede <hdegoede@redhat.com>
Date: Sat, 7 Feb 2015 13:23:39 +0100
Subject: [PATCH v2] config_distro_bootcmd.h: Enable CONFIG_CMD_PART

The recent changes to config_distro_bootcmd.h require CONFIG_CMD_PART to be
defined, as the default bootcmd now uses the "part" command.

This fixes sunxi boards not booting with v2015.04-rc1.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
"
but I didn't get around to test it.

the git tree at http://www.karme.de/git/u-boot ¹
is
git://git.denx.de/u-boot-sunxi.git
commit 5abdb156bb5c2685744be3620c4bdb1875bd81ce
+ additional defconfigs for lcd(+ts) support.
Changes from prisirah~1^2 to prisirah
	New        configs/A20-OLinuXino-Lime2-lcd10_defconfig
diff --git a/configs/A20-OLinuXino-Lime2-lcd10_defconfig b/configs/A20-OLinuXino-Lime2-lcd10_defconfig
new file mode 100644
index 0000000..5ee48ab
--- /dev/null
+++ b/configs/A20-OLinuXino-Lime2-lcd10_defconfig
@@ -0,0 +1,12 @@
+CONFIG_SPL=y
+CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_GMAC,RGMII,AHCI,SATAPWR=SUNXI_GPC(3),USB_EHCI"
+CONFIG_FDTFILE="sun7i-a20-olinuxino-lime2-ts.dtb"
+CONFIG_VIDEO_LCD_MODE="x:1024,y:600,depth:18,pclk_khz:45000,le:150,ri:16,up:21,lo:2,hs:10,vs:2,sync:3,vmode:0"
+CONFIG_VIDEO_LCD_POWER="PH8"
+CONFIG_VIDEO_LCD_BL_PWM="PB2"
++S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
++S:CONFIG_MACH_SUN7I=y
++S:CONFIG_DRAM_CLK=480
++S:CONFIG_DRAM_ZQ=127
++S:CONFIG_DRAM_EMR1=4
	New        configs/A20-OLinuXino-Lime2-lcd7_defconfig
diff --git a/configs/A20-OLinuXino-Lime2-lcd7_defconfig b/configs/A20-OLinuXino-Lime2-lcd7_defconfig
new file mode 100644
index 0000000..64cd30a
--- /dev/null
+++ b/configs/A20-OLinuXino-Lime2-lcd7_defconfig
@@ -0,0 +1,12 @@
+CONFIG_SPL=y
+CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_GMAC,RGMII,AHCI,SATAPWR=SUNXI_GPC(3),USB_EHCI"
+CONFIG_FDTFILE="sun7i-a20-olinuxino-lime2-ts.dtb"
+CONFIG_VIDEO_LCD_MODE="x:800,y:480,depth:18,pclk_khz:33000,le:16,ri:209,up:22,lo:22,hs:30,vs:1,sync:3,vmode:0"
+CONFIG_VIDEO_LCD_POWER="PH8"
+CONFIG_VIDEO_LCD_BL_PWM="PB2"
++S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
++S:CONFIG_MACH_SUN7I=y
++S:CONFIG_DRAM_CLK=480
++S:CONFIG_DRAM_ZQ=127
++S:CONFIG_DRAM_EMR1=4
	New        configs/A20-OLinuXino_MICRO-lcd10_defconfig
diff --git a/configs/A20-OLinuXino_MICRO-lcd10_defconfig b/configs/A20-OLinuXino_MICRO-lcd10_defconfig
new file mode 100644
index 0000000..f382d71
--- /dev/null
+++ b/configs/A20-OLinuXino_MICRO-lcd10_defconfig
@@ -0,0 +1,15 @@
+CONFIG_SPL=y
+CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_GMAC,AHCI,SATAPWR=SUNXI_GPB(8),USB_EHCI"
+CONFIG_FDTFILE="sun7i-a20-olinuxino-micro-ts.dtb"
+CONFIG_MMC_SUNXI_SLOT_EXTRA=3
+CONFIG_VIDEO_LCD_MODE="x:1024,y:600,depth:18,pclk_khz:45000,le:150,ri:16,up:21,lo:2,hs:10,vs:2,sync:3,vmode:0"
+CONFIG_VIDEO_LCD_POWER="PH8"
+CONFIG_VIDEO_LCD_BL_PWM="PB2"
++S:CONFIG_MMC0_CD_PIN="PH1"
++S:CONFIG_MMC3_CD_PIN="PH11"
++S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
++S:CONFIG_MACH_SUN7I=y
++S:CONFIG_DRAM_CLK=384
++S:CONFIG_DRAM_ZQ=127
++S:CONFIG_DRAM_EMR1=4
	New        configs/A20-OLinuXino_MICRO-lcd7_defconfig
diff --git a/configs/A20-OLinuXino_MICRO-lcd7_defconfig b/configs/A20-OLinuXino_MICRO-lcd7_defconfig
new file mode 100644
index 0000000..e94d0bc
--- /dev/null
+++ b/configs/A20-OLinuXino_MICRO-lcd7_defconfig
@@ -0,0 +1,15 @@
+CONFIG_SPL=y
+CONFIG_SYS_EXTRA_OPTIONS="AXP209_POWER,SUNXI_GMAC,AHCI,SATAPWR=SUNXI_GPB(8),USB_EHCI"
+CONFIG_FDTFILE="sun7i-a20-olinuxino-micro-ts.dtb"
+CONFIG_MMC_SUNXI_SLOT_EXTRA=3
+CONFIG_VIDEO_LCD_MODE="x:800,y:480,depth:18,pclk_khz:33000,le:16,ri:209,up:22,lo:22,hs:30,vs:1,sync:3,vmode:0"
+CONFIG_VIDEO_LCD_POWER="PH8"
+CONFIG_VIDEO_LCD_BL_PWM="PB2"
++S:CONFIG_MMC0_CD_PIN="PH1"
++S:CONFIG_MMC3_CD_PIN="PH11"
++S:CONFIG_ARM=y
++S:CONFIG_ARCH_SUNXI=y
++S:CONFIG_MACH_SUN7I=y
++S:CONFIG_DRAM_CLK=384
++S:CONFIG_DRAM_ZQ=127
++S:CONFIG_DRAM_EMR1=4
¹ https://www.karme.de/git/u-boot, http://karme.de/prisirah/#sec-9-1

Reply to: