Kernel "4.1 branch" at dev.laptop.org/git/olpc-kernel limping on FC22

George Hunt georgejhunt at gmail.com
Wed Jun 3 22:28:43 EDT 2015


Lots of learning, and only a little progress:

The "learnings" are somewhat questionable (sometimes I was changing more
than one thing at a time)

   1. The kernel config file does not need to be in any order (a sorted
   config works just as well)
   2. Changed settings can be appended to kernel config ("make
   olddefconfig" complains about redefinition, but does what is wanted.
   3. "make olddefconfig" is my friend, sets all new variables to default,
   doesn't waste my time.
   4. avoid "make menuconfig" -- it makes decisions without permission (I
   wasted too much time on this one)
   5. modules are cumulative (make clean every time to see the real impact
   of removing a config setting)
   6. James Cameron's xo-1.5-defconfig (in the git repo) yields a kernel
   that boots to console without initramfs.
   7. Need to add USB network drivers for remote access (see below #1)
   8. The VIA VX855 southbridge graphical display controller needs settings
   beyond my comprehension. Compare dmesg of working 3.3.8 kernel with that of
   4.1 kernel (the missing gpiochip registration). Yet when I try to startx,
   the Xorg.0.log indicates a failure to compile the keymap -- which I have
   not learned to correct. So The lack of "gpiochip" entry  may be a red
   herring.

<dmesg on 3.3.8>
     2.269975] vx855_gpio vx855_gpio: found VX855 GPIO controller
[    2.287241] gpiochip_add: registered GPIOs 0 to 41 on device: VX855
South Bridge
[    2.306327] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.324378] ehci_hcd 0000:00:10.4: EHCI Host Controller

< this is the dmesg on 4.1 kernel>
[    1.255328] vx855_gpio vx855_gpio: found VX855 GPIO controller
[    1.273348] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.291836] ehci-pci: EHCI PCI platform driver
[    1.308412] ehci-pci 0000:00:10.4: EHCI Host Controller

I found Daniel Drake's submission to upstream at:

https://lwn.net/Articles/406146/

and it appears to require gpio, spi, and maybe some IRQ steering. So I
tried to add settings that were part of the working 3.3.8 config related to
those areas, or just useful -- to no avail (list #2)

list #1: -- these entries permitted remote access via USB ethernet dongle
CONFIG_BLK_DEV_NBD=m
CONFIG_MII=m
CONFIG_OF_MDIO=m
CONFIG_PHYLIB=m
CONFIG_USB_CATC=m
CONFIG_USB_HSO=m
CONFIG_USB_IPHETH=m
CONFIG_USB_KAWETH=m
CONFIG_USB_NET_AX88179_178A=m
CONFIG_USB_NET_AX8817X=m
CONFIG_USB_NET_CDCETHER=m
CONFIG_USB_NET_CDC_NCM=m
CONFIG_USB_NET_CDC_SUBSET=m
CONFIG_USB_NET_NET1080=m
CONFIG_USB_NET_ZAURUS=m
CONFIG_USB_PEGASUS=m
CONFIG_USB_RTL8150=m
CONFIG_USB_RTL8152=m
CONFIG_USB_USBNET=m

list #2 (the kernel settings which added to James xo-1.5-defconfig did not
fix VX855 (these were all part of the config file released with the
XO-1.5).

CONFIG_ACPI_BLACKLIST_YEAR=0
CONFIG_ACPI_DEBUG=y
CONFIG_ACPI_DOCK=y
CONFIG_ACPI_PROC_EVENT=y
CONFIG_ACPI_PROCFS_POWER=y
CONFIG_FB_TILEBLITTING=y
CONFIG_FB_VESA=y
CONFIG_FB_VGA16=m
CONFIG_FIB_RULES=y
CONFIG_FRAMEBUFFER_CONSOLE_ROTATION=y
CONFIG_GENERIC_ACL=y
CONFIG_GENERIC_CLOCKEVENTS_BUILD=y
CONFIG_GENERIC_GPIO=y
CONFIG_GENERIC_HARDIRQS=y
CONFIG_GENERIC_TRACER=y
CONFIG_GPIO_SYSFS=y
CONFIG_HAVE_GENERIC_HARDIRQS=y
CONFIG_HOTPLUG=y
CONFIG_I2C_CHARDEV=m
CONFIG_I2C_GPIO=m
CONFIG_INPUT_MOUSEDEV=m
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
CONFIG_LCD_CLASS_DEVICE=y
CONFIG_LEDS_GPIO=m
CONFIG_MII=m
CONFIG_MMC_UNSAFE_RESUME=y
CONFIG_MODULE_SRCVERSION_ALL=y
CONFIG_MODVERSIONS=y
CONFIG_MSDOS_FS=m
CONFIG_OF_DEVICE=y
CONFIG_OF_I2C=y
CONFIG_OF_SPI=y
CONFIG_SECURITY_NETWORK_XFRM=y
CONFIG_SECURITY_NETWORK=y
CONFIG_SECURITY=y
CONFIG_SERIAL_8250_DETECT_IRQ=y
CONFIG_SERIAL_8250_EXTENDED=y
CONFIG_SERIAL_8250_MANY_PORTS=y
CONFIG_SERIAL_8250_RSA=y
CONFIG_SERIAL_8250_SHARE_IRQ=y
CONFIG_SERIO_RAW=m
CONFIG_SLAB=y
CONFIG_SPI_BITBANG=m
CONFIG_SPI_DEBUG=y
CONFIG_SPI_GPIO=m
CONFIG_SPI_MASTER=y
CONFIG_SPI_SPIDEV=m
CONFIG_SPI=y
CONFIG_TUN=m
CONFIG_USB_RTL8150=m
CONFIG_USB_SERIAL_GENERIC=y
CONFIG_USB_USBNET=m
CONFIG_V4L_PCI_DRIVERS=y
CONFIG_V4L_USB_DRIVERS=y
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.laptop.org/pipermail/devel/attachments/20150603/68b820ca/attachment.html>


More information about the Devel mailing list