1 1
jerryc

building armbian with different mainline

Recommended Posts

Hi

 

I want to build armbian for nanopi neo with a different mainline.  What I have done is 

1. added lib.config file in userpatches with statement ARMBIAN_MAINLINE_KERNEL_VERSION='4.9'

that didn't work, I still get a 4.10.1 kernel build

2. then changed configration.sh ARMBIAN_MAINLINE_KERNEL_VERSION='4.9'

that didn't work either, I got 4.10.1 kernel build

 

Any other tricks?

-jerry

Share this post


Link to post
Share on other sites

There is no MAINLINE kernel for H3 board, we are attached to some development branch.

 

This way:

KERNELBRANCH='branch:orange-pi-4.9'

 

Share this post


Link to post
Share on other sites

thanks, the line worked, I see the compile now pulling orange-pi-4.9. 

 

Unfortunately, the compiled failed.  Have anyone tried to 4.9?

 

  │   LD      drivers/staging/built-in.o                                   │  
  │ Makefile:988: recipe for target 'drivers' failed                       │  
  │ make: *** [drivers] Error 2  

 

Problem is here, any quick thoughts how to proceed?  Is this just me, or the current branch shouldn't compile with 4.9?

 

result [-Wunused-result]
  devm_request_irq(dev, irq, sdio_irq_handler, 0, "xradio", func);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  CC [M]  drivers/media/usb/stkwebcam/stk-webcam.o
  CC [M]  drivers/net/wireless/realtek/rtl8189fs/core/rtw_recv.o
  CC [M]  drivers/scsi/iscsi_tcp.o
  CC [M]  drivers/net/wireless/realtek/rtl8189fs/core/rtw_sta_mgt.o
drivers/spi/spi-sun6i.c: In function ‘sun6i_spi_fill_fifo’:
drivers/spi/spi-sun6i.c:160:12: error: ‘struct sun6i_spi’ has no member named ‘fifo_depth’
  cnt = sspi->fifo_depth - sun6i_spi_get_tx_fifo_count(sspi);
            ^~
drivers/spi/spi-sun6i.c: In function ‘sun6i_spi_transfer_one’:
drivers/spi/spi-sun6i.c:304:19: error: ‘struct sun6i_spi’ has no member named ‘fifo_depth’
  if (tx_len > sspi->fifo_depth)
                   ^~
drivers/spi/spi-sun6i.c: In function ‘sun6i_spi_handler’:
drivers/spi/spi-sun6i.c:345:34: error: ‘struct sun6i_spi’ has no member named ‘fifo_depth’
   sun6i_spi_drain_fifo(sspi, sspi->fifo_depth);
                                  ^~
drivers/spi/spi-sun6i.c:352:34: error: ‘struct sun6i_spi’ has no member named ‘fifo_depth’
   sun6i_spi_drain_fifo(sspi, sspi->fifo_depth);
                                  ^~
drivers/spi/spi-sun6i.c:360:33: error: ‘struct sun6i_spi’ has no member named ‘fifo_depth’
   sun6i_spi_fill_fifo(sspi, sspi->fifo_depth);
                                 ^~
  LD [M]  drivers/media/usb/gspca/gspca_sq905c.o

 

 

 

 

Share this post


Link to post
Share on other sites

When you go back with version, patches might break. You will need to deal with that ... check output/debug/patching.log for details and fix patches. In case patches are not important for you, disable them.

No other way.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
1 1