environment issues pogoplug pro v3 November 21, 2020 10:15AM |
Registered: 6 years ago Posts: 183 |
OX820> printenv bootcmd=run dt_bootcmd_ide bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm 0x60500000 0x60e00000 0x62c00000; else bootm 0x60500000 0x60e00000; fi; else if run load_dtb; then bootm 0x60500000 - 0x62c00000; else bootm 0x60500000; fi; fi bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=10 bootdev=usb custom_params=zswap.enabled=1 device=0:1 devices=usb ide disks=0 1 2 3 4 dt_bootcmd_ide=ide reset; run dt_ide_bootcmd; reset dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr dt_ide_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm dt_ide_bootcmd=run ide_set_bootargs; run dt_ide_boot dt_load_dtb=ext4load ide 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb dt_load_initrd=ext4load ide 0:1 $uinitrd_addr /boot/uInitrd dt_load_uimage=ext4load ide 0:1 $uimage_addr /boot/uImage dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot dtb_addr=0x62c00000 dtb_file=/boot/dts/ox820-pogoplug-pro.dtb ethact=dwmac.40400000 ethaddr=xx:xx:xx:xx:xx filesize=1 ide_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10 if_netconsole=ping $serverip ipaddr=xx.xx.xx.xx load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device 0x62c00000 $dtb_file load_initrd=echo loading uInitrd ...; load $bootdev $device 0x60e00000 /boot/uInitrd load_uimage=echo loading uImage ...; load $bootdev $device 0x60500000 /boot/uImage mainlineLinux=yes mtdids=nand0=41000000.nand mtdparts=mtdparts=41000000.nand:14m(boot),-(data) nc_ready=0 preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 0x60500000 /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done serverip=xx.xx.xx.xx set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial uenv_import=echo importing envs ...; env import -t 0x60510000 $filesize uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done; uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done; uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x60500000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi uimage_addr=0x60500000 uinitrd_addr=0x60e00000 usb_custom_params=zswap.enabled=1 usb_ready_retry=15 usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 Environment size: 3609/131068 bytes
Re: environment issues pogoplug pro v3 November 21, 2020 04:29PM |
Admin Registered: 13 years ago Posts: 18,997 |
bootcmd=run dt_bootcmd_ideThe above is not recommended.
dt_bootcmd_ide=ide reset; run dt_ide_bootcmd; reset dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr dt_ide_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm dt_ide_bootcmd=run ide_set_bootargs; run dt_ide_boot dt_load_dtb=ext4load ide 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb dt_load_initrd=ext4load ide 0:1 $uinitrd_addr /boot/uInitrd dt_load_uimage=ext4load ide 0:1 $uimage_addr /boot/uImage dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10
dtb_file=/boot/dts/ox820-pogoplug-pro.dtb
Re: environment issues pogoplug pro v3 November 21, 2020 08:31PM |
Registered: 6 years ago Posts: 183 |
Re: environment issues pogoplug pro v3 November 22, 2020 10:25AM |
Registered: 6 years ago Posts: 183 |
# mount /dev/sdb1 /mnt #cd /mnt # locate fw_ /mnt/etc/fw_env.config /mnt/usr/bin/fw_printenv /mnt/usr/bin/fw_setenv /mnt/usr/share/doc/u-boot-tools/examples/fw_env.config /mnt/usr/share/man/man8/fw_printenv.8.gz /mnt/usr/share/man/man8/fw_setenv.8.gz
# cd /usr/bin /usr/bin# ls . nm .. nm-applet Thunar nm-connection-editor X11 nm-online Xtightvnc nmblookup Xvnc nmcli '[' nmtui addpart nmtui-connect addr2line nmtui-edit appres nmtui-hostname apropos nohup apt nproc apt-cache nroff apt-cdrom nsenter apt-config nstat apt-extracttemplates ntfsdecrypt apt-ftparchive ntpdc apt-get ntpq apt-key ntpsweep apt-mark ntptrace apt-sortpkgs numfmt aptitude oLschema2ldif aptitude-changelog-parser objcopy aptitude-create-state-bundle objdump aptitude-curses od aptitude-run-state-bundle openfortivpn ar openssl arch pager arm-linux-gnueabi-addr2line partx arm-linux-gnueabi-ar passwd arm-linux-gnueabi-as paste arm-linux-gnueabi-c++filt patch arm-linux-gnueabi-cpp pathchk arm-linux-gnueabi-cpp-10 pcf2vpnc arm-linux-gnueabi-cpp-9 pdb3 arm-linux-gnueabi-dwp pdb3.8 arm-linux-gnueabi-elfedit pdbedit arm-linux-gnueabi-g++ perf arm-linux-gnueabi-g++-10 perl arm-linux-gnueabi-gcc perl5.32-arm-linux-gnueabi arm-linux-gnueabi-gcc-10 perl5.32.0 arm-linux-gnueabi-gcc-9 perlbug arm-linux-gnueabi-gcc-ar perldoc arm-linux-gnueabi-gcc-ar-10 perlivp arm-linux-gnueabi-gcc-ar-9 perlthanks arm-linux-gnueabi-gcc-nm pfc arm-linux-gnueabi-gcc-nm-10 pftp arm-linux-gnueabi-gcc-nm-9 pgrep arm-linux-gnueabi-gcc-ranlib pic arm-linux-gnueabi-gcc-ranlib-10 pico arm-linux-gnueabi-gcc-ranlib-9 piconv arm-linux-gnueabi-gcov pinentry arm-linux-gnueabi-gcov-10 pinentry-curses arm-linux-gnueabi-gcov-9 pinky arm-linux-gnueabi-gcov-dump pkaction arm-linux-gnueabi-gcov-dump-10 pkcheck arm-linux-gnueabi-gcov-dump-9 pkexec arm-linux-gnueabi-gcov-tool pkill arm-linux-gnueabi-gcov-tool-10 pkttyagent arm-linux-gnueabi-gcov-tool-9 pl2pm arm-linux-gnueabi-gold pldd arm-linux-gnueabi-gprof plog arm-linux-gnueabi-ld pmap arm-linux-gnueabi-ld.bfd pod2html arm-linux-gnueabi-ld.gold pod2man arm-linux-gnueabi-lto-dump-10 pod2text arm-linux-gnueabi-nm pod2usage arm-linux-gnueabi-objcopy podchecker arm-linux-gnueabi-objdump poff arm-linux-gnueabi-ranlib pon arm-linux-gnueabi-readelf pr arm-linux-gnueabi-size preconv arm-linux-gnueabi-strings print arm-linux-gnueabi-strip printenv as printf awk prlimit b2sum profiles base32 prove base64 ptar basename ptardiff basenc ptargrep bashbug ptx bdftopcf pv bdftruncate pwdx bootctl py3clean busctl py3compile c++ py3versions c++filt pydoc3 c89 pydoc3.8 c89-gcc pygettext3 c99 pygettext3.8 c99-gcc python3 c_rehash python3.8 calc_tickadj ranlib captoinfo rcp catchsegv rdma catman readelf cc realpath chacl renice chage reset chattr resizepart chcon resolvectl chfn rev choom rgrep chrt ristretto chsh rlogin cifsdd routef cisco-decrypt routel cksum rpcclient clear rpcgen clear_console rpcinfo cmp rrsync col rsh colrm rsync column rsync-ssl comm rtstat compose run-mailcap corelist runcon cpan rview cpan5.32-arm-linux-gnueabi rvim cpp samba-regedit cpp-10 samba-tool cpp-9 savelog csplit scp ctstat script cut scriptlive cvtsudoers scriptreplay dbus-cleanup-sockets sdiff dbus-daemon see dbus-launch select-editor dbus-monitor sensible-browser dbus-run-session sensible-editor dbus-send sensible-pager dbus-update-activation-environment seq dbus-uuidgen sessreg dbwrap_tool setarch deb-systemd-helper setfacl deb-systemd-invoke setpriv debconf setsid debconf-apt-progress setterm debconf-communicate setxkbmap debconf-copydb sftp debconf-escape sg debconf-set-selections sha1sum debconf-show sha224sum delpart sha256sum desktop-file-edit sha384sum desktop-file-install sha512sum desktop-file-validate sharesec devio shasum dh_dkms showrgb dialog shred diff shuf diff3 size dircolors skill dirmngr slabtop dirmngr-client slogin dirname smbcacls dpkg smbclient dpkg-architecture smbcontrol dpkg-buildflags smbcquotas dpkg-buildpackage smbget dpkg-checkbuilddeps smbpasswd dpkg-deb smbspool dpkg-distaddfile smbstatus dpkg-divert smbtar dpkg-genbuildinfo smbtree dpkg-genchanges snice dpkg-gencontrol soelim dpkg-gensymbols sort dpkg-maintscript-helper sotruss dpkg-mergechangelogs speedtest dpkg-name speedtest-cli dpkg-parsechangelog splain dpkg-query split dpkg-realpath sprof dpkg-scanpackages ssh dpkg-scansources ssh-add dpkg-shlibdeps ssh-agent dpkg-source ssh-argv0 dpkg-split ssh-copy-id dpkg-statoverride ssh-keygen dpkg-trigger ssh-keyscan dpkg-vendor sshpass du startxfce4 dumpimage stat dumpmscat stdbuf dwp streamzip edit strings editor strip editres sudo elfedit sudoedit enc2xs sudoreplay encguess sum env symcryptrun eqn systemd-analyze ex systemd-cat exo-csource systemd-cgls exo-desktop-item-edit systemd-cgtop exo-open systemd-delta exo-preferred-applications systemd-detect-virt expand systemd-id128 expiry systemd-mount expr systemd-path factor systemd-resolve faillog systemd-run fallocate systemd-socket-activate fc-cache systemd-stdio-bridge fc-cat systemd-umount fc-conflist tabs fc-list tac fc-match tail fc-pattern taskset fc-query tbl fc-scan tdbbackup fc-validate tdbbackup.tdbtools fincore tdbdump find tdbrestore findsmb tdbtool flock tee fmt test fold testparm fonttosfnt thunar free thunar-settings from tic ftp tightvncconnect ftpcount tightvncpasswd ftpdctl tightvncserver ftptop timedatectl ftpwho timeout g++ tload g++-10 toe gcc top gcc-10 touch gcc-9 tput gcc-ar tr gcc-ar-10 troff gcc-ar-9 truncate gcc-nm tset gcc-nm-10 tsort gcc-nm-9 tty gcc-ranlib tzselect gcc-ranlib-10 ucf gcc-ranlib-9 ucfq gcov ucfr gcov-10 ucs2any gcov-9 ul gcov-dump unexpand gcov-dump-10 uniq gcov-dump-9 unlink gcov-tool unlzma gcov-tool-10 unmkinitramfs gcov-tool-9 unshare gencat unxz geqn update-alternatives getconf update-desktop-database getent update-leap getfacl update-mime-database getopt updatedb git updatedb.findutils git-receive-pack uptime git-shell usb-devices git-upload-archive usbhid-dump git-upload-pack usbreset gmake users gold utmpdump gpasswd vi gpg view gpg-agent viewres gpg-connect-agent vim gpg-wks-server vim.basic gpg-zip vim.tiny gpg1 vimdiff gpgcompose vimtutor gpgconf vmstat gpgparsemail vncconnect gpgsm vncpasswd gpgsplit vncserver gpgtar w gpgv w.procps gpic wall gprof watch groff watchgnupg grog wc grops wget grotty whatis groups whereis gtbl which gtk-update-icon-cache who h2ph whoami h2xs wpa_passphrase hd write head write.ul helpztags x-session-manager hexdump x-terminal-emulator host x-window-manager hostid xargs hostnamectl xauth htop xcmsdb iceauth xdpyinfo iconv xdriinfo id xev infocmp xfburn infotocap xfce4-about install xfce4-accessibility-settings instmodsh xfce4-appearance-settings ionice xfce4-appfinder ipcmk xfce4-clipman ipcrm xfce4-clipman-history ipcs xfce4-clipman-settings iperf xfce4-color-settings ipv4calc xfce4-dict ischroot xfce4-display-settings join xfce4-find-cursor json_pp xfce4-keyboard-settings kbxutil xfce4-mime-settings kernel-install xfce4-mouse-settings kwboot xfce4-notes last xfce4-notes-settings lastb xfce4-notifyd-config lastlog xfce4-panel lcf xfce4-popup-applicationsmenu ld xfce4-popup-clipman ld.bfd xfce4-popup-clipman-actions ld.gold xfce4-popup-directorymenu ldd xfce4-popup-notes lexgrog xfce4-popup-places libnetcfg xfce4-popup-whiskermenu link xfce4-popup-windowmenu linux-check-removal xfce4-screenshooter linux-update-symlinks xfce4-sensors linux-version xfce4-session linux32 xfce4-session-logout linux64 xfce4-session-settings listres xfce4-settings-editor lnstat xfce4-settings-manager locale xfce4-taskmanager localectl xfce4-terminal localedef xfce4-terminal.wrapper locate xfconf-query locate.findutils xfd logger xfdesktop logname xfdesktop-settings look xfhelp4 lsattr xflock4 lsb_release xfontsel lscpu xfrun4 lsinitramfs xfsettingsd lsipc xfwm4 lslocks xfwm4-settings lslogins xfwm4-tweaks-settings lsmem xfwm4-workspace-settings lsns xgamma lspgpot xhost lsusb xkbbell lto-dump-10 xkbcomp luit xkbevd lzcat xkbprint lzcmp xkbvleds lzdiff xkbwatch lzegrep xkeystone lzfgrep xkill lzgrep xlsatoms lzless xlsclients lzma xlsfonts lzmainfo xmessage lzmore xmodmap make xpad make-first-existing-target xprop man xrandr man-recode xrdb mandb xrdp-dis manpath xrdp-genkeymap mawk xrdp-keygen mcookie xrdp-sesadmin md5sum xrdp-sesrun md5sum.textutils xrefresh mdsearch xset mesg xsetmode migrate-pubring-from-classic-gpg xsetpointer mkenvimage xsetroot mkfifo xstdcmap mkfontdir xsubpp mkfontscale xvidtune mkimage xvinfo mksunxiboot xwininfo mousepad xxd mtrace xz mvxattr xzcat namei xzcmp nawk xzdiff neqn xzegrep net xzfgrep netkit-ftp xzgrep netselect xzless netselect-apt xzmore newgrp yes nice zdump nl zipdetails
# cp /mnt/usr/bin/fw_printenv /usr/bin/ # cp /mnt/usr/bin/fw_setenv /usr/bin/ # fw_printenv bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm 0x60500000 0x60e00000 0x62c00000; else bootm 0x60500000 0x60e00000; fi; else if run load_dtb; then bootm 0x60500000 - 0x62c00000; else bootm 0x60500000; fi; fi bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootdelay=10 bootdev=usb device=0:1 devices=usb ide disks=0 1 2 3 dtb_file=/boot/dts/ox820-pogoplug-pro.dtb ethact=dwmac.40400000 ethaddr=xx:xx:xx:xx:xx:xx if_netconsole=ping $serverip ipaddr=xx.xx.xx.xx load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device 0x62c00000 $dtb_file load_initrd=echo loading uInitrd ...; load $bootdev $device 0x60e00000 /boot/uInitrd load_uimage=echo loading uImage ...; load $bootdev $device 0x60500000 /boot/uImage mainlineLinux=yes mtdids=nand0=41000000.nand mtdparts=mtdparts=41000000.nand:14m(boot),-(data) preboot=run preboot_nc preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 0x60500000 /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done serverip=xx:xx:xx:xx set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial uenv_import=echo importing envs ...; env import -t 0x60510000 $filesize uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done; uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in 0; do run uenv_read_disk; done; done; uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x60500000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi usb_custom_params=zswap.enabled=1 usb_ready_retry=15
Re: environment issues pogoplug pro v3 November 22, 2020 03:31PM |
Registered: 6 years ago Posts: 183 |