LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM
User Name
Password
Slackware - ARM This forum is for the discussion of Slackware ARM.

Notices


Reply
  Search this Thread
Old 05-24-2021, 12:40 AM   #76
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,918

Original Poster
Rep: Reputation: Disabled

Quote:
Originally Posted by shelldweller View Post
I have a question about uploading the kernel packages. Should I update the bootloader files at the same time? It seems like this is necessary when switching kernel branches. However, if I am upgrading from 4.4.268 to 4.4.269, should I also update the files that get put into the boot-***.txz archive?

If so, what would the exact commands be? I am able to do this on the Pinebook with these instructions, just for reference:

Code:
dd if=sunxi-spl.bin of=/dev/mmcblk0 bs=8k seek=1 conv=fsync
dd if=u-boot.itb of=/dev/mmcblk0 bs=8k seek=5 conv=fsync
What would be the equivalent commands for the three files that get created for the Rock64? (idbloader.img, rkspi_loader.img, u-boot.itb) Specifically, what would the seek values be?

thank you.
the bootloader generally does not need to be rewritten, even when migrating from kernel versions.
bootloader entry for rock64
Code:
dd if=idbloader.img of=/dev/mmcblk0 seek=64
dd if=u-boot.itb of=/dev/mmcblk0 seek=16384
 
1 members found this post helpful.
Old 06-05-2021, 07:54 PM   #77
shelldweller
Member
 
Registered: Mar 2019
Distribution: Slackware
Posts: 300

Rep: Reputation: Disabled
Thanks for the info, I appreciate it.

Now, there seems to be an issue building u-boot. I am trying to build a legacy server image for rock64, and this happens during the u-boot build:

Code:
  CC      lib/display_options.o
  LD      lib/built-in.o
  LD      u-boot
  OBJCOPY u-boot-nodtb.bin
./"arch/arm/mach-rockchip/make_fit_atf.py" \
arch/arm/dts/rk3328-rock64.dtb > u-boot.its
  RELOC   u-boot-nodtb.bin
  MKIMAGE u-boot.itb
/home/user/code/images_build_kit/build/source/u-boot /home/user/code/images_build_kit/build/source/u-boot
tools/mkimage: Can't open /home/user/code/images_build_kit/build/source/rkbin/bin/rk33/rk3328_ddr_333MHz_v1.16.bin: No such file or directory
Error: Bad parameters for image type
Usage: tools/mkimage -l image
          -l ==> list image header information
       tools/mkimage [-x] -A arch -O os -T type -C comp -a addr -e ep -n name -d data_file[:data_file...] image
          -A ==> set architecture to 'arch'
          -O ==> set operating system to 'os'
          -T ==> set image type to 'type'
          -C ==> set compression type 'comp'
          -a ==> set load address to 'addr' (hex)
          -e ==> set entry point to 'ep' (hex)
          -n ==> set image name to 'name'
          -d ==> use image data from 'datafile'
          -x ==> set XIP (execute in place)
       tools/mkimage [-D dtc_options] [-f fit-image.its|-f auto|-F] [-b <dtb> [-b <dtb>]] [-E] [-B size] [-i <ramdisk.cpio.gz>] fit-image
           <dtb> file is used with -f auto, it may occur multiple times.
          -D => set all options for device tree compiler
          -f => input filename for FIT source
          -i => input filename for ramdisk file
          -E => place data outside of the FIT structure
          -B => align size in hex for FIT structure and header
Signing / verified boot not supported (CONFIG_FIT_SIGNATURE undefined)
       tools/mkimage -V ==> print version information and exit
Use '-T list' to see a list of available image types
However, I did find:
Code:
 /home/user/code/images_build_kit/build/source/rkbin/bin/rk33/rk3328_ddr_333MHz_v1.17.bin
So, it looks like there needs to be a version bump for this file in one of the scripts, but I am not exactly sure which one.

Just an FYI. thanks again....
 
Old 06-05-2021, 11:38 PM   #78
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,918

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shelldweller View Post
Thanks for the info, I appreciate it.

Now, there seems to be an issue building u-boot. I am trying to build a legacy server image for rock64, and this happens during the u-boot build:

Code:
  CC      lib/display_options.o
  LD      lib/built-in.o
  LD      u-boot
  OBJCOPY u-boot-nodtb.bin
./"arch/arm/mach-rockchip/make_fit_atf.py" \
arch/arm/dts/rk3328-rock64.dtb > u-boot.its
  RELOC   u-boot-nodtb.bin
  MKIMAGE u-boot.itb
/home/user/code/images_build_kit/build/source/u-boot /home/user/code/images_build_kit/build/source/u-boot
tools/mkimage: Can't open /home/user/code/images_build_kit/build/source/rkbin/bin/rk33/rk3328_ddr_333MHz_v1.16.bin: No such file or directory
Error: Bad parameters for image type
Usage: tools/mkimage -l image
          -l ==> list image header information
       tools/mkimage [-x] -A arch -O os -T type -C comp -a addr -e ep -n name -d data_file[:data_file...] image
          -A ==> set architecture to 'arch'
          -O ==> set operating system to 'os'
          -T ==> set image type to 'type'
          -C ==> set compression type 'comp'
          -a ==> set load address to 'addr' (hex)
          -e ==> set entry point to 'ep' (hex)
          -n ==> set image name to 'name'
          -d ==> use image data from 'datafile'
          -x ==> set XIP (execute in place)
       tools/mkimage [-D dtc_options] [-f fit-image.its|-f auto|-F] [-b <dtb> [-b <dtb>]] [-E] [-B size] [-i <ramdisk.cpio.gz>] fit-image
           <dtb> file is used with -f auto, it may occur multiple times.
          -D => set all options for device tree compiler
          -f => input filename for FIT source
          -i => input filename for ramdisk file
          -E => place data outside of the FIT structure
          -B => align size in hex for FIT structure and header
Signing / verified boot not supported (CONFIG_FIT_SIGNATURE undefined)
       tools/mkimage -V ==> print version information and exit
Use '-T list' to see a list of available image types
However, I did find:
Code:
 /home/user/code/images_build_kit/build/source/rkbin/bin/rk33/rk3328_ddr_333MHz_v1.17.bin
So, it looks like there needs to be a version bump for this file in one of the scripts, but I am not exactly sure which one.

Just an FYI. thanks again....
Hi shelldweller,
Thanks, the update went through all the chips.
 
1 members found this post helpful.
Old 12-07-2021, 09:19 AM   #82
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,918

Original Poster
Rep: Reputation: Disabled
discussion here
 
1 members found this post helpful.
Old 01-25-2022, 11:13 AM   #83
Hannes Worst
Member
 
Registered: Jul 2008
Location: Tilburg, The Netherlands
Distribution: Void Linux, Slackware, Devuan
Posts: 179

Rep: Reputation: 122Reputation: 122
In my opinion you did a fantastic job here. I tried a couple of systems like Armbian, Manjaro, Arch Linux. None of them worked satisfactory. Armbian stopped providing an image, due to a lack of maintainers. Besides your slackware image, none of them provided a workable resolution. Good work, thank you. Now I can still keep using my rock64!
 
1 members found this post helpful.
Old 01-25-2022, 02:49 PM   #84
sndwvs
Senior Member
 
Registered: Aug 2014
Posts: 1,918

Original Poster
Rep: Reputation: Disabled
Hannes Worst Thanks, new discussion here
 
  


Reply

Tags
rk3328, rock64



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Meet ROCK64, a 4K-Capable Single-Board Computer That Can Run Android 7.1, Debian LXer Syndicated Linux News 0 07-07-2017 08:30 AM
LXer: Open-spec, RPi-style SBC features new Rockchip RK3328 LXer Syndicated Linux News 0 07-05-2017 08:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - ARM

All times are GMT -5. The time now is 11:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration