Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 03-07-2016, 02:43 AM   #1
zephray
Junior Member
zephray ought to be getting tired of karma fortunes by now.zephray ought to be getting tired of karma fortunes by now.zephray ought to be getting tired of karma fortunes by now.zephray ought to be getting tired of karma fortunes by now.zephray ought to be getting tired of karma fortunes by now.zephray ought to be getting tired of karma fortunes by now.zephray ought to be getting tired of karma fortunes by now.zephray ought to be getting tired of karma fortunes by now.zephray ought to be getting tired of karma fortunes by now.zephray ought to be getting tired of karma fortunes by now.zephray ought to be getting tired of karma fortunes by now.
 
Posts: 4
Karma: 605754
Join Date: Mar 2016
Location: China
Device: Kindle Paperwhite 2
PW2 eMMC Capicity Upgrade Tutorial!

WARNING: This hack need BGA chip soldering, if you havn't done this before, I do not recommand you to try this on your Kindle! Do ONLY when you know what you are doing.

And sorry for my poor English since I'm not a native speaker.

Before start, you would need these:
  • A new high capicity eMMC compatible with eMMC spec 4.0 (I used SDIN7DP2-8G which is quite similar with original SDIN7DP2-4G)
  • A BGA rework station (hot air gun?)
  • A Kindle Paperwhite 2 Of course
  • A USB to TTL to connect the serial port of KPW2
  • A Windows PC (virtual machine would also work fine)
  • A Linux PC (Raspberry Pi or other ARM-based Linux platform is preferred) (virtual machine would also work fine)

Yes, no programmer needed! You may flash everything with your PC.

Step 1: Back up your old data!
It's always wise to have your data backed up!
(optional)backup your system partition and diags partition following the guide in wiki. These things could be downloaded elsewhere.
Running idme in uboot you would see your pcbsn\serial and things alike, write them down!
(optional)u-boot can be backed up by using dd if=/dev/mmcblk0boot0. I would show how to build a new uboot later

Step 2: Solder new eMMC chip
No detailed process here, do this ONLY if you know how to

Here are the picture of replaced eMMC:

Link to image: http://www.zephray.com/lib/exe/fetch...din7dp2-8g.jpg

Step 3: Prepare U-boot image

Download source package on Amazon site: http://www.amazon.com/gp/help/custom...deId=200203720

Extract u-boot source code, and type following command to build U-Boot (I finished them on Raspberry Pi, so no CROSS_COMPILE is needed)

make imx60_wario_config
TYPE=prod make -j4
mv u-boot.bin u-boot-prod.bin
make distclean
make imx60_wario_bist_config
TYPE=bist make -j4
mv u-boot.bin u-boot-bist.bin
Cuz there is no u-boot in the new eMMC, a u-boot image which would work with MfgTools is needed. Actually u-boot-prod.bin would work, but that doesn't have fastboot, so add these codes to include/configs/imx60_wario.h in order to generate a full function uboot:
/* MMC drivers */
#define CONFIG_MMC
#define CONFIG_GENERIC_MMC
#define CONFIG_MMC_SDIO
#define CONFIG_IMX_MMC
#define CONFIG_SYS_FSL_ESDHC_NUM 3
#define CONFIG_SYS_FSL_ESDHC_DMA 1

/* crc32 Buffer*/
#define CRC32_BUFFER 0x02000000 + PHYS_SDRAM_1
#define CRC32_BUFFER_SIZE 0x00400000
#define CRC32_CHECK_UBOOT 0x00000010 /* check crc32 on u-boot.bin */
#define CRC32_CHECK_UIMAGE 0x00000020 /* check crc32 on uImage */
#define CRC32_CHECK_ROOTFS 0x00000040 /* check crc32 on rootfs.img */
#define CRC32_CHECK_MBR 0x00000080 /* check crc32 on mbr-xxx-bin */

/*
* USB Configs
*/
#define CONFIG_USB_DEVICE 1
/* #define CONFIG_IMX_UDC 1 */
#define CONFIG_DRIVER_FSLUSB 1
#define CONFIG_GADGET_FASTBOOT 1
/* #define CONFIG_GADGET_FILE_STORAGE 1 */
#define USB_BASE_ADDR OTG_BASE_ADDR

#define CONFIG_USBD_MANUFACTURER "Amazon"
#define CONFIG_USBD_PRODUCT_NAME "Kindle"

#define CONFIG_USBD_VENDORID 0x1949
#define CONFIG_USBD_PRODUCTID_FASTBOOT 0xd0e0
#define CONFIG_USBD_PRODUCTID_FILE_STORAGE 0x0003
#define CONFIG_FASTBOOT_MAX_DOWNLOAD_LEN ((get_dram_size()) - (2*1024*1024) - (CONFIG_FASTBOOT_TEMP_BUFFER - CONFIG_SYS_SDRAM_BASE))
#define CONFIG_FASTBOOT_TEMP_BUFFER CONFIG_LOADADDR

/* Standard commands */
#define CONFIG_CMD_BOOTD /* bootd */
#define CONFIG_CMD_CONSOLE /* coninfo */
#define CONFIG_CMD_ECHO /* echo arguments */
#define CONFIG_CMD_IMI /* iminfo */
#define CONFIG_CMD_ITEST /* Integer (and string) test */
#define CONFIG_CMD_LOADB /* loadb */
#define CONFIG_CMD_LOADS /* loads */
#define CONFIG_CMD_MEMORY /* md mm nm mw cp cmp crc base loop mtest */
#define CONFIG_CMD_MISC /* Misc functions like sleep etc*/
#define CONFIG_CMD_RUN /* run command in env variable */
#define CONFIG_CMD_SOURCE /* "source" command support */
#define CONFIG_CMD_ENV
#define CONFIG_CMD_MMC
#define CONFIG_CMD_PANIC
#define CONFIG_XYZMODEM
#define CONFIG_SRECORD
#define CONFIG_LOOPW
#define CONFIG_CMD_HALT
#define CONFIG_CMD_CRC 1
#define CONFIG_CMD_GADGET 1
#define CONFIG_CMD_IDME 1
#define CONFIG_CMD_LPM 1
#define CONFIG_CMD_VNI 1
#define CONFIG_CMD_HAPTIC 1
#define CONFIG_CMD_FSR 1

run "make clean" and "TYPE=prod make -j4" again to build the new u-boot.bin

Step 4: Run U-Boot in RAM

Since the new eMMC is empty, kindle would fail in booting uboot and fallback to USB download mode. A new HID device should appear in Device Manager when you connect USB to Kindle. If not, try to press and hold power key for ~15s to reset, and then wait ~15s for it to fallback.

Open this URL:
http://www.nxp.com/products/microcon...9-core:i.MX6SL
Click "Software&Tools", find "Tool and documentation for downloading OS images to the i.MX 6SoloLite (REV L3.0.35_4.1.0)" and download it. Registering at NXP.com would be needed.

Extract that package and modify Profiles\MX6DL Linux Update\OS Firmware\ucl2.xml, change pid from 0061 to 0063 like this:
<STATE name="BootStrap" dev="MX6D" vid="15A2" pid="0063"/>

Create a new config in ucl2.xml like this:
<LIST name="i.MX6SL-Kindle" desc="Kindle Paperwhite 2">
<CMD state="BootStrap" type="boot" body="BootStrap" file ="u-boot.bin" >Loading U-boot</CMD>
<CMD state="BootStrap" type="jump" > Jumping to OS image. </CMD>
</LIST>

Open cfg.ini, modify the "name" in "LIST" to "i.MX6SL-Kindle"

Copy u-boot.bin to Profiles\MX6DL Linux Update\OS Firmware

Run MfgTools.exe, HID device should be detected, Click Run

Now U-Boot log should appear in serial console:
U-Boot 2009.08-lab126 (Feb 29 2016 - 13:03:16)

CPU: Freescale i.MX6 family TO0.0 at 996MHz
Temperature: 35 C, calibration data 0x5a15215f
mx6sl pll1: 996MHz
mx6sl pll2: 528MHz
mx6sl pll3: 480MHz
mx6sl pll8: 50MHz
ipg clock : 66000000Hz
ipg per clock : 66000000Hz
uart clock : 80000000Hz
cspi clock : 60000000Hz
ahb clock : 132000000Hz
axi clock : 198000000Hz
emi_slow clock: 22000000Hz
ddr clock : 396000000Hz
usdhc1 clock : 198000000Hz
usdhc2 clock : 198000000Hz
usdhc3 clock : 198000000Hz
usdhc4 clock : 198000000Hz
MMC: FSL_ESDHC: 0,FSL_ESDHC: 1,FSL_ESDHC: 2
Board: Unknown
Boot Reason: [ POR ]
Boot Device: NAND
Board Id:
S/N:
I2C: ready
Invaild board id! Can't determine system type for RAM init.. bailing!
DRAM: 0 kB
Using default environment
Step 5: Fix environment

Note that Invaild board id, let's fix that.

Remember that pcbsn\serial\mac backed up in Step 1? Set them back with idme command. For example, use "idme mac 1234567890AB" to set MAC address to 12:34:56:78:90:AB. Remeber to clear empty variables too.

Reset your kindle and then boot to U-Boot with MfgTools again, RAM should work fine.
Board: Pinot WFO
...
DRAM: 256MB
Step 6: Flash system back

I assume you know how to use kindle's fastboot. If not, check wiki. Simply you need to install libusb-win32 and a custom driver. But insted of use "bist fastboot", issue "fastboot" to enter fastboot this time.

Use these command to flash DIAGs and main kernel (I assume you downloaded them or have them backed up yourself)
fastboot flash kernel main_kernel.img
fastboot flash diags_kernel diags_kernel.img
fastboot flash diags mmcblk0p2.bin
fastboot flash prod u-boot-prod.bin
fastboot flash bist u-boot-bist.bin
Then reboot to DIAGS:
fastboot setvar bootmode diags
fastboot reboot
Note that you may still need to use MfgTool to load U-Boot before Step 7.

Note that in the following steps, system may encounter some errors, if it stopped working, just reboot your kindle and see if work after reboot. Worst case is just redo the fastboot step.

Boot to diags menu like this:
PINOT-WFO - System Diags
~~~~ 1.12.536.206610 ~~~~
pcbId:XXXXX
~ S ~ Device Setting
P) Touch Sensor Plate Test
O) Operator test suite
E) 511
N) Misc individual diagnostics
Y) nART factory test
U) USB device mode
H) Touch Hold Test
D) Exit, Reboot or Disable Diags
L) Lock diags screen
X) Exit
Press D and enter, then L (Exit to login prompt) and Enter.

Use root/mario to login to shell.

Execute "fdisk -l" to check the parition table.
Disk /dev/mmcblk0: 7818 MB, 7818182656 bytes
4 heads, 16 sectors/track, 238592 cylinders
Units = cylinders of 64 * 512 = 32768 bytes

Device Boot Start End Blocks Id System
/dev/mmcblk0p1 * 1025 12224 358400 83 Linux
/dev/mmcblk0p2 12225 14272 65536 83 Linux
/dev/mmcblk0p3 14273 16320 65536 83 Linux
/dev/mmcblk0p4 16321 238592 7112704 b Win95 FAT32
Execute "mkfs -t ext3 /dev/mmcblk0p1" to format the rootfs partition.

Boot to normal mode and enter recovery menu. Use E to export FAT to USB and copy a normal upgrade .bin file into kindle. Safely unmount and use U to install system update. After this step, your kindle should be able to boot into system.

Step 7: Fix boot
Note: if your kindle could boot without MfgTool now, you do not need to do this step.

Previously kindle won't boot directly from eMMC even when u-boot is flashed via fastboot. It was caused by inproperate "BOOT_BUS_WIDTH" setting. Modify U-Boot code to fix that.

Open drivers/mmc/mmc.c, find the function "mmc_switch_partition", enable code previously disabled with "#if 0 ... #endif", delete "if ((ext_csd[EXT_CSD_CARD_TYPE] & 0xC) && enable_boot != 0)" and following boot_bus_width selecting code (that bunch of if-then-else), leave boot_bus_width=0.

Build U-Boot again and run it with MfgTools, now enter "mmc dev 1"and "mmcinfo", it should says that current boot width is 1-bit SDR.

Reset your kindle, u-boot should run without MfgTools. Enjoy your high capicity(mine is 8GB) Kindle~

-------------

Mine kindle have a broken screen so I can't show off you guys with System Info screen But that is just the reason I would try this "surgery" on Kindle

Feel free to comment if you have any questions.

For more detailed explain & my own full walk through, visit my website: www.zephray.com (in Chinese)

Last edited by zephray; 03-07-2016 at 08:26 AM.
zephray is offline   Reply With Quote
Old 03-07-2016, 06:35 AM   #2
Dr. Drib
Grand Sorcerer
Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.Dr. Drib ought to be getting tired of karma fortunes by now.
 
Dr. Drib's Avatar
 
Posts: 44,737
Karma: 55645321
Join Date: Jan 2007
Location: Peru
Device: Kindle: Oasis 3, Voyage WiFi; Kobo: Libra 2, Aura One
Moderator Notice

Zephray:
Please take a few moments to read our Posting Guidelines, in particular the part about the maximum image size allowed (600x600 pixels). Images that violate those guidelines will be deleted.

It is every member's responsibility to read our Posting Guidelines and follow them.

Thanks.
Dr. Drib is offline   Reply With Quote
Old 03-07-2016, 08:23 AM   #3
zephray
Junior Member
zephray ought to be getting tired of karma fortunes by now.zephray ought to be getting tired of karma fortunes by now.zephray ought to be getting tired of karma fortunes by now.zephray ought to be getting tired of karma fortunes by now.zephray ought to be getting tired of karma fortunes by now.zephray ought to be getting tired of karma fortunes by now.zephray ought to be getting tired of karma fortunes by now.zephray ought to be getting tired of karma fortunes by now.zephray ought to be getting tired of karma fortunes by now.zephray ought to be getting tired of karma fortunes by now.zephray ought to be getting tired of karma fortunes by now.
 
Posts: 4
Karma: 605754
Join Date: Mar 2016
Location: China
Device: Kindle Paperwhite 2
Quote:
Originally Posted by Dr. Drib View Post

Zephray:
Please take a few moments to read our Posting Guidelines, in particular the part about the maximum image size allowed (600x600 pixels). Images that violate those guidelines will be deleted.

It is every member's responsibility to read our Posting Guidelines and follow them.

Thanks.
I'm extremely sorry about that, I thought that high resolution picutures would be nice to look at but forgot the posting guideline...
zephray is offline   Reply With Quote
Old 03-07-2016, 08:45 AM   #4
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by zephray View Post
I'm extremely sorry about that, I thought that high resolution picutures would be nice to look at but forgot the posting guideline...
Attach it to the post rather than in-line it.

In the editor box, choose the 'advanced' editor, scroll down past the text entry box to the 'manage attachments' sections.

= = = =

There are two different PW-2 models -
Yours must have been the 4Gbyte model.

I am not sure if the 2Gbyte model used the SDIN7DP2 series of eMMC devices, so a user considering this upgrade for an early PW-2 (2Gbyte) should check the part number of the eMMC device.
It may be a different series of parts (different pin-out (ball-out? ) ).

I do know that the firmware for the old model (2Gbyte) will not recognize the new model (4Gbyte) eMMC. Which suggests that it is a different part series.

- - - - -

For the curious - it is about a $10 part and most major distributors will sell them one at a time.

- - - - -

This thread includes the information on how to get the dram running, which is an open question here in another thread (somebody here needed that information).

- - - - -

There is a fairly recent thread here about recovering an erased Kindle using Fastboot.
That thread started with a working install of u-boot, but once you reach that point in this thread, you can also use the additional info in that other thread.

Notes:
That other thread has a lot of log files attached, so you can see what you should expect.
If that other thread is for a different model, the procedure is still the same.

See:
https://www.mobileread.com/forums/sho...d.php?t=269099

PS:
You don't have to format mmcblk0p1 - the recovery install will do that for you anyway.
You don't have to use 'diags' menu to do the recovery install - you can do that from initramfs (I.E: only u-boot and kernel installed, a 'diags' install is optional).
The recovery install will also re-size mmcblk0p4 to use all the remaining (extra 4Gbyte) of space for you.

Last edited by knc1; 03-07-2016 at 09:24 AM.
knc1 is offline   Reply With Quote
Old 03-07-2016, 09:21 AM   #5
pdurrant
The Grand Mouse 高貴的老鼠
pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.pdurrant ought to be getting tired of karma fortunes by now.
 
pdurrant's Avatar
 
Posts: 71,496
Karma: 306214458
Join Date: Jul 2007
Location: Norfolk, England
Device: Kindle Voyage
Wow. That's some serious hacking. I think I'll just live with 4GB storage.
pdurrant is offline   Reply With Quote
Old 03-07-2016, 09:26 AM   #6
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by pdurrant View Post
Wow. That's some serious hacking. I think I'll just live with 4GB storage.
Only the write-up is new and original.

IIRC - the K5 can accept up to a 16Gbyte eMMC (different manufacturer part series on the K5).
Just that no one ever wrote it up for us.
knc1 is offline   Reply With Quote
Old 05-02-2016, 02:00 AM   #7
zengxg14
Junior Member
zengxg14 began at the beginning.
 
Posts: 5
Karma: 10
Join Date: May 2016
Device: kindle paperwhite1
I got a kindle paperwhite 1. No change of eMMC but uboot show msg: "Invaild board id! Can't determine system type for RAM init.. bailing!". Can you tell me how to use idme to set board id?
I don't know how to run the command.
zengxg14 is offline   Reply With Quote
Old 08-19-2017, 09:51 PM   #8
alberio
Junior Member
alberio began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2016
Device: kindle 7
please send u-boot.bin to alberio@dadox.com.br
thanks

Quote:
Originally Posted by zephray View Post
WARNING: This hack need BGA chip soldering, if you havn't done this before, I do not recommand you to try this on your Kindle! Do ONLY when you know what you are doing.
And sorry for my poor English since I'm not a native speaker.
Before start, you would need these:
  • A new high capicity eMMC compatible with eMMC spec 4.0 (I used SDIN7DP2-8G which is quite similar with original SDIN7DP2-4G)
  • A BGA rework station (hot air gun?)
  • A Kindle Paperwhite 2 Of course
  • A USB to TTL to connect the serial port of KPW2
  • A Windows PC (virtual machine would also work fine)
  • A Linux PC (Raspberry Pi or other ARM-based Linux platform is preferred) (virtual machine would also work fine)
Yes, no programmer needed! You may flash everything with your PC.
Step 1: Back up your old data!
It's always wise to have your data backed up!
(optional)backup your system partition and diags partition following the guide in wiki. These things could be downloaded elsewhere.
Running idme in uboot you would see your pcbsn\serial and things alike, write them down!
(optional)u-boot can be backed up by using dd if=/dev/mmcblk0boot0. I would show how to build a new uboot later
Step 2: Solder new eMMC chip
No detailed process here, do this ONLY if you know how to
Here are the picture of replaced eMMC:
Link to image: http://www.zephray.com/lib/exe/fetch...din7dp2-8g.jpg
Step 3: Prepare U-boot image
Download source package on Amazon site: http://www.amazon.com/gp/help/custom...deId=200203720
Extract u-boot source code, and type following command to build U-Boot (I finished them on Raspberry Pi, so no CROSS_COMPILE is needed)

make imx60_wario_config
TYPE=prod make -j4
mv u-boot.bin u-boot-prod.bin
make distclean
make imx60_wario_bist_config
TYPE=bist make -j4
mv u-boot.bin u-boot-bist.bin
Cuz there is no u-boot in the new eMMC, a u-boot image which would work with MfgTools is needed. Actually u-boot-prod.bin would work, but that doesn't have fastboot, so add these codes to include/configs/imx60_wario.h in order to generate a full function uboot:
/* MMC drivers */
#define CONFIG_MMC
#define CONFIG_GENERIC_MMC
#define CONFIG_MMC_SDIO
#define CONFIG_IMX_MMC
#define CONFIG_SYS_FSL_ESDHC_NUM 3
#define CONFIG_SYS_FSL_ESDHC_DMA 1
/* crc32 Buffer*/
#define CRC32_BUFFER 0x02000000 + PHYS_SDRAM_1
#define CRC32_BUFFER_SIZE 0x00400000
#define CRC32_CHECK_UBOOT 0x00000010 /* check crc32 on u-boot.bin */
#define CRC32_CHECK_UIMAGE 0x00000020 /* check crc32 on uImage */
#define CRC32_CHECK_ROOTFS 0x00000040 /* check crc32 on rootfs.img */
#define CRC32_CHECK_MBR 0x00000080 /* check crc32 on mbr-xxx-bin */
/* * USB Configs */
#define CONFIG_USB_DEVICE 1
/* #define CONFIG_IMX_UDC 1 */
#define CONFIG_DRIVER_FSLUSB 1
#define CONFIG_GADGET_FASTBOOT 1
/* #define CONFIG_GADGET_FILE_STORAGE 1 */
#define USB_BASE_ADDR OTG_BASE_ADDR
#define CONFIG_USBD_MANUFACTURER "Amazon"
#define CONFIG_USBD_PRODUCT_NAME "Kindle"
#define CONFIG_USBD_VENDORID 0x1949
#define CONFIG_USBD_PRODUCTID_FASTBOOT 0xd0e0
#define CONFIG_USBD_PRODUCTID_FILE_STORAGE 0x0003
#define CONFIG_FASTBOOT_MAX_DOWNLOAD_LEN ((get_dram_size()) - (2*1024*1024) - (CONFIG_FASTBOOT_TEMP_BUFFER - CONFIG_SYS_SDRAM_BASE))
#define CONFIG_FASTBOOT_TEMP_BUFFER CONFIG_LOADADDR
/* Standard commands */
#define CONFIG_CMD_BOOTD /* bootd */
#define CONFIG_CMD_CONSOLE /* coninfo */
#define CONFIG_CMD_ECHO /* echo arguments */
#define CONFIG_CMD_IMI /* iminfo */
#define CONFIG_CMD_ITEST /* Integer (and string) test */
#define CONFIG_CMD_LOADB /* loadb */
#define CONFIG_CMD_LOADS /* loads */
#define CONFIG_CMD_MEMORY /* md mm nm mw cp cmp crc base loop mtest */
#define CONFIG_CMD_MISC /* Misc functions like sleep etc*/
#define CONFIG_CMD_RUN /* run command in env variable */
#define CONFIG_CMD_SOURCE /* "source" command support */
#define CONFIG_CMD_ENV
#define CONFIG_CMD_MMC
#define CONFIG_CMD_PANIC
#define CONFIG_XYZMODEM
#define CONFIG_SRECORD
#define CONFIG_LOOPW
#define CONFIG_CMD_HALT
#define CONFIG_CMD_CRC 1
#define CONFIG_CMD_GADGET 1
#define CONFIG_CMD_IDME 1
#define CONFIG_CMD_LPM 1
#define CONFIG_CMD_VNI 1
#define CONFIG_CMD_HAPTIC 1
#define CONFIG_CMD_FSR 1
run "make clean" and "TYPE=prod make -j4" again to build the new u-boot.bin
Step 4: Run U-Boot in RAM
Since the new eMMC is empty, kindle would fail in booting uboot and fallback to USB download mode. A new HID device should appear in Device Manager when you connect USB to Kindle. If not, try to press and hold power key for ~15s to reset, and then wait ~15s for it to fallback.
Open this URL:
http://www.nxp.com/products/microcon...9-core:i.MX6SL
Click "Software&Tools", find "Tool and documentation for downloading OS images to the i.MX 6SoloLite (REV L3.0.35_4.1.0)" and download it. Registering at NXP.com would be needed.
Extract that package and modify Profiles\MX6DL Linux Update\OS Firmware\ucl2.xml, change pid from 0061 to 0063 like this:
<STATE name="BootStrap" dev="MX6D" vid="15A2" pid="0063"/>
Create a new config in ucl2.xml like this:
<LIST name="i.MX6SL-Kindle" desc="Kindle Paperwhite 2"> <CMD state="BootStrap" type="boot" body="BootStrap" file ="u-boot.bin" >Loading U-boot</CMD> <CMD state="BootStrap" type="jump" > Jumping to OS image. </CMD>
</LIST>
Open cfg.ini, modify the "name" in "LIST" to "i.MX6SL-Kindle"
Copy u-boot.bin to Profiles\MX6DL Linux Update\OS Firmware
Run MfgTools.exe, HID device should be detected, Click Run
Now U-Boot log should appear in serial console:
U-Boot 2009.08-lab126 (Feb 29 2016 - 13:03:16)
CPU: Freescale i.MX6 family TO0.0 at 996MHz
Temperature: 35 C, calibration data 0x5a15215f
mx6sl pll1: 996MHz
mx6sl pll2: 528MHz
mx6sl pll3: 480MHz
mx6sl pll8: 50MHz
ipg clock : 66000000Hz
ipg per clock : 66000000Hz
uart clock : 80000000Hz
cspi clock : 60000000Hz
ahb clock : 132000000Hz
axi clock : 198000000Hz
emi_slow clock: 22000000Hz
ddr clock : 396000000Hz
usdhc1 clock : 198000000Hz
usdhc2 clock : 198000000Hz
usdhc3 clock : 198000000Hz
usdhc4 clock : 198000000Hz
MMC: FSL_ESDHC: 0,FSL_ESDHC: 1,FSL_ESDHC: 2
Board: Unknown
Boot Reason: [ POR ]
Boot Device: NAND
Board Id:
S/N:
I2C: ready
Invaild board id! Can't determine system type for RAM init.. bailing!
DRAM: 0 kB
Using default environment
Step 5: Fix environment
Note that Invaild board id, let's fix that.
Remember that pcbsn\serial\mac backed up in Step 1? Set them back with idme command. For example, use "idme mac 1234567890AB" to set MAC address to 12:34:56:78:90:AB. Remeber to clear empty variables too.
Reset your kindle and then boot to U-Boot with MfgTools again, RAM should work fine.
Board: Pinot WFO
...
DRAM: 256MB
Step 6: Flash system back
I assume you know how to use kindle's fastboot. If not, check wiki. Simply you need to install libusb-win32 and a custom driver. But insted of use "bist fastboot", issue "fastboot" to enter fastboot this time.
Use these command to flash DIAGs and main kernel (I assume you downloaded them or have them backed up yourself)
fastboot flash kernel main_kernel.img
fastboot flash diags_kernel diags_kernel.img
fastboot flash diags mmcblk0p2.bin
fastboot flash prod u-boot-prod.bin
fastboot flash bist u-boot-bist.bin
Then reboot to DIAGS:
fastboot setvar bootmode diags
fastboot reboot
Note that you may still need to use MfgTool to load U-Boot before Step 7.
Note that in the following steps, system may encounter some errors, if it stopped working, just reboot your kindle and see if work after reboot. Worst case is just redo the fastboot step.
Boot to diags menu like this:
PINOT-WFO - System Diags ~~~~ 1.12.536.206610 ~~~~ pcbId:XXXXX
~ S ~ Device Setting
P) Touch Sensor Plate Test
O) Operator test suite
E) 511
N) Misc individual diagnostics
Y) nART factory test
U) USB device mode
H) Touch Hold Test
D) Exit, Reboot or Disable Diags
L) Lock diags screen
X) Exit
Press D and enter, then L (Exit to login prompt) and Enter.
Use root/mario to login to shell.
Execute "fdisk -l" to check the parition table.
Disk /dev/mmcblk0: 7818 MB, 7818182656 bytes
4 heads, 16 sectors/track, 238592 cylinders
Units = cylinders of 64 * 512 = 32768 bytes Device Boot Start End Blocks Id System
/dev/mmcblk0p1 * 1025 12224 358400 83 Linux
/dev/mmcblk0p2 12225 14272 65536 83 Linux
/dev/mmcblk0p3 14273 16320 65536 83 Linux
/dev/mmcblk0p4 16321 238592 7112704 b Win95 FAT32
Execute "mkfs -t ext3 /dev/mmcblk0p1" to format the rootfs partition.
Boot to normal mode and enter recovery menu. Use E to export FAT to USB and copy a normal upgrade .bin file into kindle. Safely unmount and use U to install system update. After this step, your kindle should be able to boot into system.
Step 7: Fix boot
Note: if your kindle could boot without MfgTool now, you do not need to do this step.
Previously kindle won't boot directly from eMMC even when u-boot is flashed via fastboot. It was caused by inproperate "BOOT_BUS_WIDTH" setting. Modify U-Boot code to fix that.
Open drivers/mmc/mmc.c, find the function "mmc_switch_partition", enable code previously disabled with "#if 0 ... #endif", delete "if ((ext_csd[EXT_CSD_CARD_TYPE] & 0xC) && enable_boot != 0)" and following boot_bus_width selecting code (that bunch of if-then-else), leave boot_bus_width=0.
Build U-Boot again and run it with MfgTools, now enter "mmc dev 1"and "mmcinfo", it should says that current boot width is 1-bit SDR.
Reset your kindle, u-boot should run without MfgTools. Enjoy your high capicity(mine is 8GB) Kindle~
-------------
Mine kindle have a broken screen so I can't show off you guys with System Info screen But that is just the reason I would try this "surgery" on Kindle
Feel free to comment if you have any questions.
For more detailed explain & my own full walk through, visit my website: www.zephray.com (in Chinese)
alberio is offline   Reply With Quote
Old 08-19-2017, 10:07 PM   #9
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by alberio View Post
please send u-boot.bin to yyyyy@xxxxx.br
thanks
It is not wise to publish your e-mail address.
Use the PM system for such information between users.

There is no need for anyone to send you anything.
Amazon has published the source code of the u-boot they are using:
https://www.amazon.com/gp/help/custo...deId=200203720

And the post you quoted has complete directions on the building of it.

See the blue bar just above the first post of this thread?
Click the drop down box labeled: "Thread Tools" -
Click the choice to display the thread in printable format -
Then print the first post on paper - where you can study it and keep notes.

See Step #1?
I recently posted a script that will do that backup task.
If you can wait a few more days, I will have a better and more complete one posted.

Last edited by knc1; 08-19-2017 at 10:11 PM.
knc1 is offline   Reply With Quote
Old 08-24-2017, 08:34 AM   #10
alberio
Junior Member
alberio began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2016
Device: kindle 7
home/alberio/Downloads/uboot/uboot_2009.08-5.8.10_3202090019/include/asm/arch/mx60_wario_board.h:17:21: fatal error: boardid.h: No such file or directory
#include <boardid.h>


I've tried compiling multiple versions of source codes, but none of them works!
Thanks for listening!
alberio is offline   Reply With Quote
Old 08-24-2017, 08:39 AM   #11
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by alberio View Post
home/alberio/Downloads/uboot/uboot_2009.08-5.8.10_3202090019/include/asm/arch/mx60_wario_board.h:17:21: fatal error: boardid.h: No such file or directory
#include <boardid.h>


I've tried compiling multiple versions of source codes, but none of them works!
Thanks for listening!
That header file is part of the Kernel sources, included in the same gpl_release archive you downloaded for the u-boot sources.
knc1 is offline   Reply With Quote
Old 08-24-2017, 04:32 PM   #12
alberio
Junior Member
alberio began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2016
Device: kindle 7
Quote:
Originally Posted by knc1 View Post
That header file is part of the Kernel sources, included in the same gpl_release archive you downloaded for the u-boot sources.
Is exactly what I'm doing, I've tried several different versions. The versions that contain the boardid.hd file do not work! Now I'm using a raspberry to compile! To get closer than you did!

What version did you use? Is still available on amazon's website?
alberio is offline   Reply With Quote
Old 08-24-2017, 06:33 PM   #13
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
If they "did not work", then you can be certain that you did something wrong in how you tried to use them.
knc1 is offline   Reply With Quote
Old 08-24-2017, 09:37 PM   #14
alberio
Junior Member
alberio began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2016
Device: kindle 7
Quote:
Originally Posted by knc1 View Post
If they "did not work", then you can be certain that you did something wrong in how you tried to use them.
ig@raspberrypi:~/Downloads/uboot_2009.08-5.4.0_2061450050$ make imx60_wario_confi
Configuring for imx60_wario board... TYPE=prod make -j4
Generating include/autoconf.mk
Generating include/autoconf.mk.dep
for dir in tools examples/standalone examples/api ; do make -C $dir _depend ; done
make[1]: Entering directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/tools'
make[1]: Nothing to be done for '_depend'.
make[1]: Leaving directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/tools'
make[1]: Entering directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/examples/standalone'
make[1]: Nothing to be done for '_depend'.
make[1]: Leaving directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/examples/standalone'
make[1]: Entering directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/examples/api'
make[1]: Nothing to be done for '_depend'.
make[1]: Leaving directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/examples/api'
make -C tools all
make -C examples/standalone all
make[1]: Entering directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/tools'
make -C examples/api all
make[1]: Entering directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/examples/standalone'
make -C cpu/arm_cortexa8 start.o
make[1]: Entering directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/examples/api'
gcc -g -Wall -idirafter /home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include -idirafter /home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include2 -idirafter /home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include -I /home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/libfdt -I /home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/tools -DTEXT_BASE=0x00980000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o mkimage.o /home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/tools/mkimage.c
gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x00980000 -I/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/6/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -o hello_world.o hello_world.c -c
make[1]: Entering directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/cpu/arm_cortexa8'
In file included from /home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/tools/mkimage.c:26:0:
/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include/image.h:524:12: warning: inline function ‘fit_parse_subimage’ declared but never defined inline int fit_parse_subimage (const char *spec, ulong addr_curr, ^~~~~~~~~~~~~~~~~~
/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include/image.h:522:12: warning: inline function ‘fit_parse_conf’ declared but never defined inline int fit_parse_conf (const char *spec, ulong addr_curr, ^~~~~~~~~~~~~~
make[1]: Nothing to be done for 'all'.
make[1]: Leaving directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/examples/api'
make -C /home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/board//imx60_wario/ u-boot.lds
gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x00980000 -I/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/6/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -o stubs.o stubs.c -c
gcc -D__ASSEMBLY__ -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x00980000 -I/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/6/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv7-a -o start.o start.S -c
make[1]: Entering directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/board/imx60_wario'
make[1]: Leaving directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/cpu/arm_cortexa8'
gcc -g -Wall -idirafter /home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include -idirafter /home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include2 -idirafter /home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include -I /home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/libfdt -I /home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/tools -DTEXT_BASE=0x00980000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -c -o image.o /home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/common/image.c
ar crv libstubs.a stubs.o
r - stubs.o
ld -g -Ttext 0xc100000 \ -o hello_world -e hello_world hello_world.o libstubs.a \ -L/usr/lib/gcc/arm-linux-gnueabihf/6 -lgcc
make[1]: Nothing to be done for 'u-boot.lds'.
make[1]: Leaving directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/board/imx60_wario'
In file included from /home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/common/image.c:78:0:
/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include/image.h:524:12: warning: inline function ‘fit_parse_subimage’ declared but never defined inline int fit_parse_subimage (const char *spec, ulong addr_curr, ^~~~~~~~~~~~~~~~~~
/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include/image.h:522:12: warning: inline function ‘fit_parse_conf’ declared but never defined inline int fit_parse_conf (const char *spec, ulong addr_curr, ^~~~~~~~~~~~~~
objcopy -O srec hello_world hello_world.srec 2>/dev/null
objcopy -O binary hello_world hello_world.bin 2>/dev/null
make[1]: Leaving directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/examples/standalone'
gcc -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -idirafter /home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include -idirafter /home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include2 -idirafter /home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include -I /home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/libfdt -I /home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/tools -DTEXT_BASE=0x00980000 -DUSE_HOSTCC -D__KERNEL_STRICT_NAMES -O -o mkimage mkimage.o crc32.o image.o md5.o sha1.o fdt.o fdt_ro.o fdt_rw.o fdt_strerror.o fdt_wip.o os_support.o
strip mkimage
make[1]: Leaving directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/tools'
make -C lib_generic/
make -C lib_generic/lzma/
make[1]: Entering directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/lib_generic'
make -C lib_generic/lzo/
make[1]: Entering directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/lib_generic/lzma'
gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x00980000 -I/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/6/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -o crc32.o crc32.c -c
make -C cpu/arm_cortexa8/
make[1]: Entering directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/lib_generic/lzo'
make[1]: Entering directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/cpu/arm_cortexa8'
ar crv liblzma.a
gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x00980000 -I/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/6/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -o display_options.o display_options.c -c
make[1]: Leaving directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/lib_generic/lzma'
make -C cpu/arm_cortexa8/mx6/
ar crv liblzo.a
gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x00980000 -I/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/6/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -o cpu.o cpu.c -c
make[1]: Leaving directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/lib_generic/lzo'
gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x00980000 -I/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/6/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -o lmb.o lmb.c -c
make[1]: Entering directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/cpu/arm_cortexa8/mx6'
make -C lib_arm/
ar crv libarm_cortexa8.a cpu.o
make[1]: Entering directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/lib_arm'
r - cpu.o
make[1]: Leaving directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/cpu/arm_cortexa8'
make -C fs/cramfs/
gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x00980000 -I/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/6/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -o interrupts.o interrupts.c -c
make[1]: Entering directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/fs/cramfs'
gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x00980000 -I/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/6/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -o sha1.o sha1.c -c
gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x00980000 -I/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/6/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -o generic.o generic.c -c
gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x00980000 -I/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/6/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -o board.o board.c -c
sha1.c:389:19: warning: ‘_sha1_src’ defined but not used [-Wunused-const-variable=] static const char _sha1_src[] = "_sha1_src"; ^~~~~~~~~
ar crv libcramfs.a
board.c:151:6: error: ‘coloured_LED_init’ aliased to external symbol ‘__coloured_LED_init’ void coloured_LED_init (void) __attribute__((weak, alias("__coloured_LED_init"))); ^~~~~~~~~~~~~~~~~
board.c:167:6: error: ‘blue_LED_off’ aliased to external symbol ‘__blue_LED_off’ void blue_LED_off(void)__attribute__((weak, alias("__blue_LED_off"))); ^~~~~~~~~~~~
board.c:165:6: error: ‘blue_LED_on’ aliased to external symbol ‘__blue_LED_on’ void blue_LED_on(void)__attribute__((weak, alias("__blue_LED_on"))); ^~~~~~~~~~~
board.c:163:6: error: ‘yellow_LED_off’ aliased to external symbol ‘__yellow_LED_off’ void yellow_LED_off(void)__attribute__((weak, alias("__yellow_LED_off"))); ^~~~~~~~~~~~~~
board.c:161:6: error: ‘yellow_LED_on’ aliased to external symbol ‘__yellow_LED_on’ void yellow_LED_on(void)__attribute__((weak, alias("__yellow_LED_on"))); ^~~~~~~~~~~~~
board.c:159:6: error: ‘green_LED_off’ aliased to external symbol ‘__green_LED_off’ void green_LED_off(void)__attribute__((weak, alias("__green_LED_off"))); ^~~~~~~~~~~~~
board.c:157:6: error: ‘green_LED_on’ aliased to external symbol ‘__green_LED_on’ void green_LED_on(void) __attribute__((weak, alias("__green_LED_on"))); ^~~~~~~~~~~~
board.c:155:6: error: ‘red_LED_off’ aliased to external symbol ‘__red_LED_off’ void red_LED_off(void) __attribute__((weak, alias("__red_LED_off"))); ^~~~~~~~~~~
board.c:153:6: error: ‘red_LED_on’ aliased to external symbol ‘__red_LED_on’ void red_LED_on (void) __attribute__((weak, alias("__red_LED_on"))); ^~~~~~~~~~
/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/config.mk:218: recipe for target 'board.o' failed
make[1]: *** [board.o] Error 1
make[1]: Leaving directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/lib_arm'
Makefile:351: recipe for target 'lib_arm/libarm.a' failed
make: *** [lib_arm/libarm.a] Error 2
gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x00980000 -I/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/6/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -o iomux-v3.o iomux-v3.c -c
make: *** Waiting for unfinished jobs....
make[1]: Leaving directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/fs/cramfs'
gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x00980000 -I/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/6/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -o strmhz.o strmhz.c -c
gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x00980000 -I/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/6/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -o timer.o timer.c -c
gcc -g -Os -fno-strict-aliasing -fno-common -ffixed-r8 -msoft-float -D__KERNEL__ -DTEXT_BASE=0x00980000 -I/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/include -fno-builtin -ffreestanding -nostdinc -isystem /usr/lib/gcc/arm-linux-gnueabihf/6/include -pipe -DCONFIG_ARM -D__ARM__ -marm -mabi=aapcs-linux -mno-thumb-interwork -march=armv7-a -Wall -Wstrict-prototypes -fno-stack-protector -o vsprintf.o vsprintf.c -c
ar crv libmx6.a interrupts.o generic.o iomux-v3.o timer.o
r - interrupts.o
r - generic.o
r - iomux-v3.o
r - timer.o
make[1]: Leaving directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/cpu/arm_cortexa8/mx6'
ar crv libgeneric.a crc16.o crc32.o ctype.o display_options.o div64.o lmb.o ldiv.o sha1.o string.o strmhz.o vsprintf.o
r - crc16.o
r - crc32.o
r - ctype.o
r - display_options.o
r - div64.o
r - lmb.o
r - ldiv.o
r - sha1.o
r - string.o
r - strmhz.o
r - vsprintf.o
make[1]: Leaving directory '/home/pi/Downloads/uboot_2009.08-5.4.0_2061450050/lib_generic'
pi@raspberrypi:~/Downloads/uboot_2009.08-5.4.0_2061450050$
alberio is offline   Reply With Quote
Old 08-24-2017, 09:40 PM   #15
alberio
Junior Member
alberio began at the beginning.
 
Posts: 6
Karma: 10
Join Date: Jan 2016
Device: kindle 7
on 5.8.10
figraspberrypi:~/Downloads/uboot_2009.08-5.8.10_3202090019$ make imx60_wario_conf
Configuring for imx60_wario board...
pi@raspberrypi:~/Downloads/uboot_2009.08-5.8.10_3202090019$ TYPE=prod make -j4
Generating include/autoconf.mk
In file included from /home/pi/Downloads/uboot_2009.08-5.8.10_3202090019/include/configs/imx60_wario.h:253:0,
from /home/pi/Downloads/uboot_2009.08-5.8.10_3202090019/include/config.h:2,
from include/common.h:37:
/home/pi/Downloads/uboot_2009.08-5.8.10_3202090019/include/asm/arch/mx60_wario_board.h:17:21: fatal error: boardid.h: No such file or directory
#include <boardid.h>
^
compilation terminated.
Generating include/autoconf.mk.dep
In file included from /home/pi/Downloads/uboot_2009.08-5.8.10_3202090019/include/configs/imx60_wario.h:253:0,
from /home/pi/Downloads/uboot_2009.08-5.8.10_3202090019/include/config.h:2,
from include/common.h:37:
/home/pi/Downloads/uboot_2009.08-5.8.10_3202090019/include/asm/arch/mx60_wario_board.h:17:21: fatal error: boardid.h: No such file or directory
#include <boardid.h>
^
compilation terminated.
for dir in tools examples/standalone examples/api ; do make -C $dir _depend ; done
make[1]: Entering directory '/home/pi/Downloads/uboot_2009.08-5.8.10_3202090019/tools'
make[1]: Warning: File '.depend' has modification time 351733 s in the future
make[1]: Nothing to be done for '_depend'.
make[1]: warning: Clock skew detected. Your build may be incomplete.
make[1]: Leaving directory '/home/pi/Downloads/uboot_2009.08-5.8.10_3202090019/tools'
make[1]: Entering directory '/home/pi/Downloads/uboot_2009.08-5.8.10_3202090019/examples/standalone'
make[1]: Warning: File '.depend' has modification time 351731 s in the future
make[1]: Nothing to be done for '_depend'.
make[1]: warning: Clock skew detected. Your build may be incomplete.
make[1]: Leaving directory '/home/pi/Downloads/uboot_2009.08-5.8.10_3202090019/examples/standalone'
make[1]: Entering directory '/home/pi/Downloads/uboot_2009.08-5.8.10_3202090019/examples/api'
make[1]: Nothing to be done for '_depend'.
make[1]: Leaving directory '/home/pi/Downloads/uboot_2009.08-5.8.10_3202090019/examples/api'
make -C tools all
make -C examples/standalone all
make[1]: Entering directory '/home/pi/Downloads/uboot_2009.08-5.8.10_3202090019/tools'
^CMakefile:357: recipe for target 'tools' failed
make: *** [tools] Interrupt
alberio is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Which one are you ordering: PW2 wifi or PW2 3G jocampo Amazon Kindle 37 08-18-2014 10:48 AM
eMMC storage mgmueller General Discussions 5 02-27-2013 09:27 AM
Why can’t I complete the Kobo Touch firmware upgrade or Desktop upgrade? DarrellAtKobo Kobo Reader 31 08-31-2012 10:45 PM
Color Nook Color - Process to move from CM7.0.3 on SD to CM7.1 in emmc? scarab1 Nook Developer's Corner 4 11-02-2011 01:32 PM
iLiad First HelloWorld tutorial, a n00b primer First Hello World Tutorial, a n00b primer mind iRex Developer's Corner 13 09-19-2008 09:43 AM


All times are GMT -4. The time now is 07:40 PM.


MobileRead.com is a privately owned, operated and funded community.