07-08-2021, 05:23 PM
Messing with the partition layout is a bit dangerous, because the start of the eMMC/SD card is layed out in a specific way.
The RK3399 SoC will read it's idbloader.img from byte 32768 (from the start of the device, sector 0x40).
After that is the u-boot at the magic offset byte 8388608 (sector 0x4000).
That's the reason why partitions are starting rather far into the device on the stock images, to make space for the bootloader and SPL.
You can find more information about the boot process in this wiki article from Rockchip:
http://opensource.rock-chips.com/wiki_Boot_option
In short: Don't touch the first ~16-32 MiB of the device and you'll be fine.
Otherwise, you'll need to dd the bootloader and idbloader back onto the partition after your actions:
Code:
(as root, these files are probably in /boot)
Tobias
This message was forwarded to me by a friend that does not own a PineBook Pro but does use Linux on his computers. An earlier message provided a link to a full factory image of the original Manjaro operating system. I followed the link to the Manjaro operating system and downloaded it to my main computer (which is running Ubuntu 20.04.2 LTS. That ISO was successfully burned to a new thumb drive which has been labeled and will not be used for any other programs. When I insert the thumb drive in one of the USB ports on the PBP and power it on, the power light does indicate that the system is trying to boot, but nothing else happens. If when I power the PBP on, if I quickly press the ESC key, I can get the Manjaro logo and a spinning indicator that the system is at least trying to do something. If I press the ESC key a second time while the spinning indicator is showing, another page comes up informing me that the ONLY purpose of the image is to flash Manjaro-ARM to internal eMMC or other internal storage. It will destroy all data on the eMMC. Do you want to proceed? [YES] [no] When I select YES and try to continue, the next page asks me to choose the eMMC device -- Be sure the correct drive is selected! Currently, the sdcard is at "sda2 on." Then there is a chart or list with five entries: sda, mmcblk2, mmcblk2boot0, mmcblk2boot1, and mmcblk1. No matter which option is selected, when I press ENTER to continue, I get a terminal screen with these lines: "==> Image does not exist.... [root@manjaro-arm ~]# " and an empty command line. The command 'ls' does list the files: "BOOT mmcblk2boot0" then another command line. The command "cd .. " then another "ls" gives: "bin boot dev etc home lib lost+found mnt opt procv root run sbin srv sys tmp usr var." A "cd bin" returns a long list of files, but no real way to see all of the names. A "cd lib" and "ls" also returns a long list of files. There appears to be no way to copy the image file to the eMMC (any one of the eMMC blocks) or to further extract or install the files needed to get the PBP to boot and run as it should. Any additional help would be very welcome as this PBP is fast becoming an expensive paperweight.
James Good
The RK3399 SoC will read it's idbloader.img from byte 32768 (from the start of the device, sector 0x40).
After that is the u-boot at the magic offset byte 8388608 (sector 0x4000).
That's the reason why partitions are starting rather far into the device on the stock images, to make space for the bootloader and SPL.
You can find more information about the boot process in this wiki article from Rockchip:
http://opensource.rock-chips.com/wiki_Boot_option
In short: Don't touch the first ~16-32 MiB of the device and you'll be fine.
Otherwise, you'll need to dd the bootloader and idbloader back onto the partition after your actions:
Code:
Code:
dd if=idbloader.img of=/dev/sdb seek=64
dd if=u-boot.itb of=/dev/sdb seek=16384
Tobias
This message was forwarded to me by a friend that does not own a PineBook Pro but does use Linux on his computers. An earlier message provided a link to a full factory image of the original Manjaro operating system. I followed the link to the Manjaro operating system and downloaded it to my main computer (which is running Ubuntu 20.04.2 LTS. That ISO was successfully burned to a new thumb drive which has been labeled and will not be used for any other programs. When I insert the thumb drive in one of the USB ports on the PBP and power it on, the power light does indicate that the system is trying to boot, but nothing else happens. If when I power the PBP on, if I quickly press the ESC key, I can get the Manjaro logo and a spinning indicator that the system is at least trying to do something. If I press the ESC key a second time while the spinning indicator is showing, another page comes up informing me that the ONLY purpose of the image is to flash Manjaro-ARM to internal eMMC or other internal storage. It will destroy all data on the eMMC. Do you want to proceed? [YES] [no] When I select YES and try to continue, the next page asks me to choose the eMMC device -- Be sure the correct drive is selected! Currently, the sdcard is at "sda2 on." Then there is a chart or list with five entries: sda, mmcblk2, mmcblk2boot0, mmcblk2boot1, and mmcblk1. No matter which option is selected, when I press ENTER to continue, I get a terminal screen with these lines: "==> Image does not exist.... [root@manjaro-arm ~]# " and an empty command line. The command 'ls' does list the files: "BOOT mmcblk2boot0" then another command line. The command "cd .. " then another "ls" gives: "bin boot dev etc home lib lost+found mnt opt procv root run sbin srv sys tmp usr var." A "cd bin" returns a long list of files, but no real way to see all of the names. A "cd lib" and "ls" also returns a long list of files. There appears to be no way to copy the image file to the eMMC (any one of the eMMC blocks) or to further extract or install the files needed to get the PBP to boot and run as it should. Any additional help would be very welcome as this PBP is fast becoming an expensive paperweight.
James Good