./rock64_write_spi_flash.sh fails - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: ROCKPRO64 (https://forum.pine64.org/forumdisplay.php?fid=98) +--- Forum: General Discussion on ROCKPRO64 (https://forum.pine64.org/forumdisplay.php?fid=99) +--- Thread: ./rock64_write_spi_flash.sh fails (/showthread.php?tid=6356) |
./rock64_write_spi_flash.sh fails - yanagawa3 - 08-04-2018 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 RE: ./rock64_write_spi_flash.sh fails - paradise - 08-04-2018 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. RE: ./rock64_write_spi_flash.sh fails - tllim - 08-05-2018 (08-04-2018, 07:04 PM)yanagawa3 Wrote: Hi I thinks the rock64_write_spi_flash.sh only works on ROCK64 board, ayufan may not yet create one for ROCKPro64. RE: ./rock64_write_spi_flash.sh fails - yanagawa3 - 08-05-2018 (08-05-2018, 12:32 AM)tllim Wrote:(08-04-2018, 07:04 PM)yanagawa3 Wrote: Hi 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 ------------------------------------------------------------ RE: ./rock64_write_spi_flash.sh fails - paradise - 08-05-2018 '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 RE: ./rock64_write_spi_flash.sh fails - dukla2000 - 08-05-2018 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 |