./rock64_write_spi_flash.sh fails
#1
Hi
I am newbie for rockpro64.

I have installed bionic-lxde-rockpro64-0.7.9-1067-arm64 into MicroSD.
It's working fine.

Then I want to have dual boot environment.

When I execute /usr/local/sbin/rock64_write_spi_flash.sh, not successful.

"line22: exit: Unknown package installed.: numeric argument required"

Am I something missing ?
Any help appreciated.

Rockpro64 V2.1
#2
I love the drunk programmer's error message: "Unknown package installed."
Did he expect to know every program/package in existence and is checking your installation for non-existing (alien) programs/packages? 

It looks like some kind of scripting error like calling python or perl or something and that's giving you the error.
Maybe mixing up of python/perl package versions that makes some bad meta and gives this error!?

Try editing the file and check line 22.. what is it calling? Try reproducing it/check what it is trying to do.
#3
(08-04-2018, 07:04 PM)yanagawa3 Wrote: Hi
I am newbie for rockpro64.

I have installed bionic-lxde-rockpro64-0.7.9-1067-arm64 into MicroSD.
It's working fine.

Then I want to have dual boot environment.

When I execute /usr/local/sbin/rock64_write_spi_flash.sh, not successful.

"line22: exit: Unknown package installed.: numeric argument required"

Am I something missing ?
Any help appreciated.

Rockpro64 V2.1

I thinks the rock64_write_spi_flash.sh only works on ROCK64 board, ayufan may not yet create one for ROCKPro64.
#4
(08-05-2018, 12:32 AM)tllim Wrote:
(08-04-2018, 07:04 PM)yanagawa3 Wrote: Hi
I am newbie for rockpro64.

I have installed bionic-lxde-rockpro64-0.7.9-1067-arm64 into MicroSD.
It's working fine.

Then I want to have dual boot environment.

When I execute /usr/local/sbin/rock64_write_spi_flash.sh, not successful.

"line22: exit: Unknown package installed.: numeric argument required"

Am I something missing ?
Any help appreciated.

Rockpro64 V2.1

I thinks the rock64_write_spi_flash.sh only works on ROCK64 board, ayufan may not yet create one for ROCKPro64.

Thank you tllim and paradise.

spi_flash script looks like support both rock64 and rockpro64 boards.
I try to install u-boot-rockchip-rock64-xxxxxx.deb downloaded from ayufan repo.
However not successful.

------------------------------------------------------------------
if dpkg -s "u-boot-rockchip-rockpro64" &>/dev/null; then
    BOARD=rockpro64
    LOADER_NAME=rkspi_loader
elif dpkg -s "u-boot-rockchip-rock64" &>/dev/null; then
    BOARD=rock64
    LOADER_NAME=rksd_loader
else
    exit "Unknown package installed."
    exit 1
fi
------------------------------------------------------------
#5
'dpkg -s "u-boot-rockchip-rock64" &>/dev/null; then'

Ahh.. now the unknown package line make a bit more sense. haha
It looks if you have installed u-boot package and will use that to decide what type of machine you have.

You need to install the u-boot-rockchip-rockpro64 package for it to continue.

Not a Linux guy but maybe something in the line of dpkg -i "u-boot-rockchip-rockpro64" or so? :-)

If the programmer of that script is reading this; try and find some sysctl that tells the type of board. :-)
And image makers should always try and make this data come from the machine not the fs. It's pretty useful!

Code:
# sysctl kern.ident
kern.ident: sopine
Started using FreeBSD at version 2.0 but really started using it at around version 6.4. 
If it doesn't do what you want; hack it until it does!
#6
Current u-boot stuff is here.

(Seems you are trying Rock64 u-boot on RockPro64?)

PPS - just seen the following on IRC
[url=http://irc.pine64.uk/?][/url]

Code:
RonWhoCares> ayufan: : Are you aware of an eta for the SPI flash for Rock64pro
ayufan1> nope
ayufan1> Probably somewhere in two weeks
  • ROCKPro64 v2.1 2GB, 16Gb eMMC for rootfs, SX8200Pro 512GB NVMe for /home, HDMI video & sound, Bluetooth keyboard & mouse. Arch (6.2 kernel, Openbox desktop) for general purpose daily PC.
  • PinePhone Pro Explorer Edition, daily driver, rk2aw & U-boot on SPI, Arch/SXMO & Arch/phosh on eMMC
  • PinePhone BraveHeart now v1.2b 3/32Gb, Tow-boot with Arch/SXMO on eMMC


Forum Jump:


Users browsing this thread: 1 Guest(s)