Re: Help running latest linux-omap kernel on Nokia N810
On 2014-02-27 07:19, Tomi Valkeinen wrote: On 26/02/14 23:29, Aaro Koskinen wrote: First the bad news: display support is not in the mainline kernel. Also since linux-omap tree follows the mainline, it's not there either anymore. Tomi removed the n8x0 panel driver some time ago (I don't know why), but even then it wasn't working as the platform data failed to set up some It would've been a big effort to keep the panel driver compiling, as we moved to a new display driver architecture. And, as it wasn't working anyway, I deemed it simpler to just remove it. I have no objections to add it back, but it needs to be split into two separate drivers, blizzard encoder driver and the panel driver. The RFBI driver also probably needs some love. And, of course, DT support for all those. In theory, RFBI is relatively simple. If I recall right, the panel is also quite simple, although it still needs to be controlled via SPI. Blizzard was a bit more complex one, but perhaps most of its features can be just left out. But getting all those three working fine without being able to make any measurements between the components, well, one might needs some luck there =). I do have N800 and N810 (no serial mods), so I might be able to give some help there at some point, if I'm able to boot the board with usb gadget ethernet (which hasn't been working for me for omap3 for some time). Hi Tomi, In the following commit it states that you ported the old blizzard driver to the new omapdss driver: commit fdcb68884b3b0def9cc410d07adbafe7c3a9e537 Author: Tomi Valkeinen tomi.valkei...@ti.com Date: Tue May 10 17:31:20 2011 +0300 OMAPFB: remove old blizzard driver N8x0's blizzard driver has been ported to new omapdss driver, so we can now remove the old blizzard driver. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com Did that driver work on the N810 at that point? If I look at the kernel tree at that point in time would all the components be there? It would make it easier if I had a starting point as I don't have any documentation so reading the old source code is the only way I can figure out how things work(ed). Regards, Leigh. -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Help running latest linux-omap kernel on Nokia N810
On 27/02/14 10:19, Leigh Brown wrote: In the following commit it states that you ported the old blizzard driver to the new omapdss driver: commit fdcb68884b3b0def9cc410d07adbafe7c3a9e537 Author: Tomi Valkeinen tomi.valkei...@ti.com Date: Tue May 10 17:31:20 2011 +0300 OMAPFB: remove old blizzard driver N8x0's blizzard driver has been ported to new omapdss driver, so we can now remove the old blizzard driver. Signed-off-by: Tomi Valkeinen tomi.valkei...@ti.com Did that driver work on the N810 at that point? If I look at the kernel tree at that point in time would all the components be there? It would make it easier if I had a starting point as I don't have any documentation so reading the old source code is the only way I can figure out how things work(ed). Yes, that one worked, but... if I recall right, it didn't work in the mainline version. Or more precisely, the mainline kernel didn't work on N800 at all (at least for me). When I did the porting (and if my memory works right) I had a big pile of N800 patches on top of the mainline to get the board booting. And on top of that, I made the new blizzard driver. In fact, I possibly have the branch which I used in my backup repository. I pushed it to: git://git.kernel.org/pub/scm/linux/kernel/git/tomba/linux.git work/n800-39 However, looking at the log, it doesn't contain anything else than DSS patches. So... Maybe that branch itself doesn't boot, it just contains all the DSS related patches. I don't see any other related branches. Tomi signature.asc Description: OpenPGP digital signature
Re: Help running latest linux-omap kernel on Nokia N810
Hi, On Thu, Feb 27, 2014 at 08:19:06AM +, Leigh Brown wrote: Did that driver work on the N810 at that point? If I look at the kernel tree at that point in time would all the components be there? It would make it easier if I had a starting point as I don't have any documentation so reading the old source code is the only way I can figure out how things work(ed). OpenWRT has patches to make the old blizzard driver work: http://git.openwrt.org/?p=openwrt.git;a=tree;f=target/linux/omap24xx/patches-3.3;h=c0cece34bf0a5f37496015c8e76c7eae636efe06;hb=HEAD See 310-n810-lcd.patch, and also you will need at least 312-no-hwmod-reset.patch, otherwise the HW won't respond at all. There is no known kernel tree with new (now deleted) panel-n8x0 that would work on N8x0. So probably the easiest route would be to take the old blizzard driver, forward port it to current kernel (the old omapfb is still supported) together with OpenWRT patches. This would probably get a working display with minor effort. Then start rewriting that code for the new framework and DT etc. A. -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Help running latest linux-omap kernel on Nokia N810
On 27/02/14 21:38, Aaro Koskinen wrote: Hi, On Thu, Feb 27, 2014 at 08:19:06AM +, Leigh Brown wrote: Did that driver work on the N810 at that point? If I look at the kernel tree at that point in time would all the components be there? It would make it easier if I had a starting point as I don't have any documentation so reading the old source code is the only way I can figure out how things work(ed). OpenWRT has patches to make the old blizzard driver work: http://git.openwrt.org/?p=openwrt.git;a=tree;f=target/linux/omap24xx/patches-3.3;h=c0cece34bf0a5f37496015c8e76c7eae636efe06;hb=HEAD See 310-n810-lcd.patch, and also you will need at least 312-no-hwmod-reset.patch, otherwise the HW won't respond at all. There is no known kernel tree with new (now deleted) panel-n8x0 that would work on N8x0. So probably the easiest route would be to take the old blizzard driver, forward port it to current kernel (the old omapfb is still supported) The old omapfb driver (drivers/video/omap/) only supports omap1. The unused omap2 code was removed. What I would probably do is get an old kernel that has working display. Then add some hacks to get register dumps for RFBI, blizzard and the panel, and see what gpios, regulators, etc are turned on and connected to blizzard or the panel. And then just start from scratch with the latest kernel, copy-pasting parts of the driver. That's more or less what I did when I made the N800 display work with the new omapfb and omapdss (drivers/video/omap2/). Tomi signature.asc Description: OpenPGP digital signature
Re: Help running latest linux-omap kernel on Nokia N810
Hi, On Wed, Feb 26, 2014 at 06:24:36PM +, Leigh Brown wrote: I have built the latest linux-omap git tree for my N810 but when I boot it I get a black screen with the backlight on. Does anyone have a working .config that they could share with me? During my investigations I have discovered that the kernel configuration has changed enormously in the last couple of years. I was worried that the N810 was no longer supported at allm especially when I saw that a few of the old drivers (blizzard) had been removed. I was pleasantly surprised when I discovered that a lot of the old drivers had been replaced by new ones. I will document the latest state of play with the N810 once I have got things going. All I really want is a text console with working keyboard and wifi, initially. Any help will be gratefully received. I can't help much, because I do not own any N8x0 device, but you should probably visit [0] (and update it once you get stuff working :)) The omap platform is currently moving over to Device Tree [1] based booting, so you come at the right time to test DT based booting on your N810. Building a DT kernel for your N810 works like this: enable the following config entries: CONFIG_ARM_APPENDED_DTB=y CONFIG_ARM_ATAG_DTB_COMPAT=y CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEND=y CONFIG_PINCTRL=y CONFIG_PINCTRL_SINGLE=y and build zImage like this: $ export ARCH=arm $ export CROSS_COMPILE=arm-linux-gnueabi- $ make zImage $ make omap2420-n810.dtb $ cat arch/arm/boot/zImage arch/arm/boot/dts/omap3-n900.dtb zImage Be aware, that the DTS file seems to lack display keyboard support at the moment, so you may want to start building a serial adapter first. See [2] for details on this. This may seem like lots of work, but it really makes things much easier. [0] http://elinux.org/N800 [1] http://devicetree.org/ [2] http://bues.ch/cms/hacking/n810-serial.html -- Sebastian signature.asc Description: Digital signature
Re: Help running latest linux-omap kernel on Nokia N810
* Sebastian Reichel s...@ring0.de [140226 10:56]: Hi, On Wed, Feb 26, 2014 at 06:24:36PM +, Leigh Brown wrote: I have built the latest linux-omap git tree for my N810 but when I boot it I get a black screen with the backlight on. Does anyone have a working .config that they could share with me? Attached is what I've been using for my boot testing. If it does not fit into the memory, you need to cut down on the options. During my investigations I have discovered that the kernel configuration has changed enormously in the last couple of years. I was worried that the N810 was no longer supported at allm especially when I saw that a few of the old drivers (blizzard) had been removed. I was pleasantly surprised when I discovered that a lot of the old drivers had been replaced by new ones. I will document the latest state of play with the N810 once I have got things going. All I really want is a text console with working keyboard and wifi, initially. Any help will be gratefully received. I can't help much, because I do not own any N8x0 device, but you should probably visit [0] (and update it once you get stuff working :)) The omap platform is currently moving over to Device Tree [1] based booting, so you come at the right time to test DT based booting on your N810. Building a DT kernel for your N810 works like this: enable the following config entries: CONFIG_ARM_APPENDED_DTB=y CONFIG_ARM_ATAG_DTB_COMPAT=y CONFIG_ARM_ATAG_DTB_COMPAT_CMDLINE_EXTEND=y CONFIG_PINCTRL=y CONFIG_PINCTRL_SINGLE=y and build zImage like this: $ export ARCH=arm $ export CROSS_COMPILE=arm-linux-gnueabi- $ make zImage $ make omap2420-n810.dtb $ cat arch/arm/boot/zImage arch/arm/boot/dts/omap3-n900.dtb zImage Be aware, that the DTS file seems to lack display keyboard support at the moment, so you may want to start building a serial adapter first. See [2] for details on this. This may seem like lots of work, but it really makes things much easier. Yeah the above should pretty much do it for booting it :) Regards, Tony [0] http://elinux.org/N800 [1] http://devicetree.org/ [2] http://bues.ch/cms/hacking/n810-serial.html CONFIG_SYSVIPC=y CONFIG_POSIX_MQUEUE=y CONFIG_NO_HZ=y CONFIG_HIGH_RES_TIMERS=y CONFIG_BSD_PROCESS_ACCT=y CONFIG_IKCONFIG=y CONFIG_IKCONFIG_PROC=y CONFIG_LOG_BUF_SHIFT=16 CONFIG_BLK_DEV_INITRD=y CONFIG_EXPERT=y CONFIG_SLAB=y CONFIG_PROFILING=y CONFIG_OPROFILE=y CONFIG_KPROBES=y CONFIG_MODULES=y CONFIG_MODULE_FORCE_LOAD=y CONFIG_MODULE_UNLOAD=y CONFIG_MODULE_FORCE_UNLOAD=y CONFIG_MODVERSIONS=y CONFIG_MODULE_SRCVERSION_ALL=y # CONFIG_BLK_DEV_BSG is not set CONFIG_PARTITION_ADVANCED=y # CONFIG_EFI_PARTITION is not set CONFIG_ARCH_MULTI_V6=y CONFIG_OMAP_RESET_CLOCKS=y CONFIG_OMAP_MUX_DEBUG=y CONFIG_ARCH_OMAP2=y # CONFIG_SOC_OMAP2430 is not set CONFIG_ARM_THUMBEE=y CONFIG_ARM_ERRATA_411920=y CONFIG_ARM_ERRATA_720789=y CONFIG_ARM_ERRATA_754322=y CONFIG_ARM_ERRATA_775420=y # CONFIG_COMPACTION is not set CONFIG_ZBOOT_ROM_TEXT=0x0 CONFIG_ZBOOT_ROM_BSS=0x0 CONFIG_CMDLINE=root=/dev/mmcblk0p2 rootwait console=ttyO2,115200 earlyprintk ignore_loglevel CONFIG_KEXEC=y CONFIG_FPE_NWFPE=y CONFIG_BINFMT_MISC=y CONFIG_PM_DEBUG=y CONFIG_NET=y CONFIG_PACKET=y CONFIG_UNIX=y CONFIG_XFRM_USER=y CONFIG_NET_KEY=y CONFIG_NET_KEY_MIGRATE=y CONFIG_INET=y CONFIG_IP_MULTICAST=y CONFIG_IP_PNP=y CONFIG_IP_PNP_DHCP=y CONFIG_IP_PNP_BOOTP=y CONFIG_IP_PNP_RARP=y # CONFIG_INET_LRO is not set # CONFIG_IPV6 is not set CONFIG_NETFILTER=y CONFIG_BT=m CONFIG_BT_HCIUART=m CONFIG_BT_HCIUART_H4=y CONFIG_BT_HCIUART_BCSP=y CONFIG_BT_HCIUART_LL=y CONFIG_BT_HCIBCM203X=m CONFIG_BT_HCIBPA10X=m CONFIG_CFG80211=m CONFIG_CFG80211_WEXT=y CONFIG_MAC80211=m CONFIG_MAC80211_RC_PID=y CONFIG_MAC80211_RC_DEFAULT_PID=y CONFIG_UEVENT_HELPER_PATH=/sbin/hotplug CONFIG_OMAP_INTERCONNECT=y CONFIG_CONNECTOR=y CONFIG_MTD=y CONFIG_MTD_CMDLINE_PARTS=y CONFIG_MTD_BLOCK=y CONFIG_MTD_OOPS=y CONFIG_MTD_CFI=y CONFIG_MTD_CFI_INTELEXT=y CONFIG_MTD_NAND=y CONFIG_MTD_NAND_OMAP2=y CONFIG_MTD_ONENAND=y CONFIG_MTD_ONENAND_VERIFY_WRITE=y CONFIG_MTD_ONENAND_OMAP2=y CONFIG_MTD_UBI=y CONFIG_BLK_DEV_LOOP=y CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_SIZE=16384 CONFIG_SCSI=y CONFIG_BLK_DEV_SD=y CONFIG_SCSI_MULTI_LUN=y CONFIG_SCSI_SCAN_ASYNC=y CONFIG_MD=y CONFIG_NETDEVICES=y CONFIG_KS8851=y CONFIG_KS8851_MLL=y CONFIG_SMC91X=y CONFIG_SMSC911X=y CONFIG_SMSC_PHY=y CONFIG_USB_USBNET=y CONFIG_USB_NET_SMSC95XX=y CONFIG_USB_ALI_M5632=y CONFIG_USB_AN2720=y CONFIG_USB_EPSON2888=y CONFIG_USB_KC2190=y CONFIG_LIBERTAS=m CONFIG_LIBERTAS_USB=m CONFIG_LIBERTAS_SDIO=m CONFIG_LIBERTAS_DEBUG=y CONFIG_INPUT_JOYDEV=y CONFIG_INPUT_EVDEV=y CONFIG_KEYBOARD_GPIO=y CONFIG_KEYBOARD_TWL4030=y CONFIG_INPUT_TOUCHSCREEN=y CONFIG_TOUCHSCREEN_ADS7846=y CONFIG_INPUT_MISC=y CONFIG_INPUT_RETU_PWRBUTTON=y CONFIG_INPUT_TWL4030_PWRBUTTON=y # CONFIG_LEGACY_PTYS is not set CONFIG_SERIAL_8250=y CONFIG_SERIAL_8250_CONSOLE=y CONFIG_SERIAL_8250_NR_UARTS=32
Re: Help running latest linux-omap kernel on Nokia N810
Hi, On Wed, Feb 26, 2014 at 07:53:32PM +0100, Sebastian Reichel wrote: On Wed, Feb 26, 2014 at 06:24:36PM +, Leigh Brown wrote: Does anyone have a working .config that they could share with me? Yes. During my investigations I have discovered that the kernel configuration has changed enormously in the last couple of years. I was worried that the N810 was no longer supported at allm especially when I saw that a few of the old drivers (blizzard) had been removed. I was pleasantly surprised when I discovered that a lot of the old drivers had been replaced by new ones. I will document the latest state of play with the N810 once I have got things going. All I really want is a text console with working keyboard and wifi, initially. First the bad news: display support is not in the mainline kernel. Also since linux-omap tree follows the mainline, it's not there either anymore. Tomi removed the n8x0 panel driver some time ago (I don't know why), but even then it wasn't working as the platform data failed to set up some needed things properly. I was trying to get it working at but failed before the driver got removed. Anyway, this is still on my backlog and at some point I will try to reintroduce the display support. Meanwhile, the OMAP2 has been converted to DT so this is not going to be trivial so any help in this effort is appreciated. (Read: please send patches :)) Good news: it's still possible to run current mainline Linux on N8x0. But only basic functionality is there. You can interact with the device at least over UART and USB (e.g. ssh connection with USB networking). MMC and flash should work too. I haven't yet tested the WIFI. I'm booting test kernels with 0x - the N8x0 has 2MB limitation for the kernel, so I'm using kexec (tiny kernel) to boot a full-featured kernel from MMC. My kernel configs for 3.13 are available here: http://www.iki.fi/aaro/comp/linux/v3.13/arm-testresults.html. Building a serial adapter to develop Linux on N8x0 isn't strictly necessary as long as you get the USB is working. However it will ease things alot. 770/N800 are more friendly in this regard, as you can access the serial pins without removing the battery. A. -- To unsubscribe from this list: send the line unsubscribe linux-omap in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: Help running latest linux-omap kernel on Nokia N810
On 26/02/14 23:29, Aaro Koskinen wrote: First the bad news: display support is not in the mainline kernel. Also since linux-omap tree follows the mainline, it's not there either anymore. Tomi removed the n8x0 panel driver some time ago (I don't know why), but even then it wasn't working as the platform data failed to set up some It would've been a big effort to keep the panel driver compiling, as we moved to a new display driver architecture. And, as it wasn't working anyway, I deemed it simpler to just remove it. I have no objections to add it back, but it needs to be split into two separate drivers, blizzard encoder driver and the panel driver. The RFBI driver also probably needs some love. And, of course, DT support for all those. In theory, RFBI is relatively simple. If I recall right, the panel is also quite simple, although it still needs to be controlled via SPI. Blizzard was a bit more complex one, but perhaps most of its features can be just left out. But getting all those three working fine without being able to make any measurements between the components, well, one might needs some luck there =). I do have N800 and N810 (no serial mods), so I might be able to give some help there at some point, if I'm able to boot the board with usb gadget ethernet (which hasn't been working for me for omap3 for some time). Tomi signature.asc Description: OpenPGP digital signature