kobolabs / Kobo-Reader

http://www.koboereader.com/
585 stars 126 forks source link

Kobo Aura Edition 2 (N236) kernel & bootloader #115

Closed tux-linux closed 2 years ago

tux-linux commented 2 years ago

Hello,

I've looked through the hw folder but I haven't been able to find the Aura 2 (N236) kernel or bootloader sources. There has been a previous issue about this (#65) but I wonder if it was for another Aura edition 2, because the one I have definitely isn't "H2O". Where could I get them?

Thank you.

tux-linux commented 2 years ago

I found out that using the kernel suggested in #65 worked, with the device starting it successfully. Does it just work because it's made for that device, or does it boot but it has some flaws?

Also, the build date on /proc/version, on mine, is only a few months old. Given that the sources haven't been updated since 2017, an update on them would be appreciated.

Linux version 3.0.35+ (gallen@gallen-M51AC) (gcc version 4.6.2 20110630 (prerelease) (Freescale MAD -- Linaro 2011.07 -- Built at 2011/08/10 09:20) ) #5031 PREEMPT Tue Mar 30 14:26:27 CST 2021

Thanks

tux-linux commented 2 years ago

Also, I can't get the provided U-Boot to build or run. Which config (mx6sl_ntx_lpddr2_256m_config maybe?) and flash header to choose? PCB ID is E60QL0.

build@inkbox:~/inkbox/kernel/bootloader/mx6sl-n236/board/freescale/mx6sl_ntx$ ls
20140731_Netronix_MX6SL_LPDDR2_512MB_000.inc                 flash_header.LPDDR2-MT42L128M32D1-E60Q80.S  flash_header.S_6L              gallen_dbg.h                                                        mx6sl_ntx.c  ntx_hwconfig.h
20140731_Netronix_MX6SL_LPDDR2_512MB_000.inc.flash_header.S  flash_header.LPDDR2-MT42L128M32D1-E60QD0.S  flash_header.S_6L_nanya        libmx6sl_ntx.a                                                      mx6sl_ntx.o  ntx_hw.h
config.mk                                                    flash_header.LPDDR2-MT42L128M32D1-ED0Q00.S  flash_header.S_6L_nanya_02     lowlevel_init.o                                                     ntx_cmd.c    u-boot.lds
flash_header.DDR3-default.S                                  flash_header.LPDDR2-MT42L128M32D1.S         flash_header.S_6L_nanya_02-11  lowlevel_init.S                                                     ntx_cmd.o
flash_header.E60Q90.S                                        flash_header.o                              flash_header.S_6L_nanya_02-12  Makefile                                                            ntx_comm.c
flash_header.E60QD0.S                                        flash_header.S.400mhz                       flash_header.S_6L_nanya_03     MX6SL_MMDC_LPDDR2_register_programming_aid_v0.9.inc                 ntx_comm.h
flash_header.LPDDR2-default.S                                flash_header.S.475mhz                       flash_header.S_mp              MX6SL_MMDC_LPDDR2_register_programming_aid_v0.9.inc.flash_header.S  ntx_hw.c
build@inkbox:~/inkbox/kernel/bootloader/mx6sl-n236/board/freescale/mx6sl_ntx$

Thanks!

EDIT: The correct flash header was identified as flash_header.E60Q90.S thanks to @akemnade. The config was set at mx6sl_ntx_lpddr2_256m_config.

tux-linux commented 2 years ago

@gtalusan although I closed this issue, an update to the sources would still be appreciated. Thank you

akemnade commented 2 years ago

DCD area in compile result is identical to original u-boot, so this file is a real match

tux-linux commented 2 years ago

@akemnade I was more talking about the kernel in this case, but thanks for the confirmation on this subject.