OpenWrt/General: Difference between revisions
< OpenWrt
(Die Seite wurde neu angelegt: „== Block Device == (root from usb stick) <blockquote> <pre> opkg update opkg install kmod-usb-uhci insmod uhci opkg install kmod-usb-ohci insmod usb-ohci opkg…“) |
mNo edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 10: | Line 10: | ||
opkg install kmod-usb-storage block-mount kmod-fs-ext4 kmod-nls-cp437 kmod-nls-cp850 kmod-nls-iso8859-1 kmod-nls-iso8859-15 kmod-scsi-core e2fsprogs fdisk | opkg install kmod-usb-storage block-mount kmod-fs-ext4 kmod-nls-cp437 kmod-nls-cp850 kmod-nls-iso8859-1 kmod-nls-iso8859-15 kmod-scsi-core e2fsprogs fdisk | ||
</pre> | |||
</blockquote> | |||
== update all packages == | |||
<pre> | |||
opkg update | |||
opkg list-upgradable | cut -f 1 -d ' ' | xargs -r opkg upgrade | |||
</pre> | |||
== Clear Flash == | |||
<blockquote> | |||
<pre> | |||
mtd -r erase rootfs_data | |||
</pre> | |||
</blockquote> | |||
== Sysupgrade == | |||
<blockquote> | |||
<pre> | |||
wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin | |||
sysupgrade -v openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin | |||
</pre> | |||
</blockquote> | |||
== /etc/profile add == | |||
<blockquote> | |||
<pre> | |||
alias l='ls -1Flah' | |||
alias dirsize='clear; for each in $(ls) ; do du -hs "$each" ; done' | |||
</pre> | </pre> | ||
</blockquote> | </blockquote> |
Latest revision as of 17:05, 26 December 2021
Block Device
(root from usb stick)
opkg update opkg install kmod-usb-uhci insmod uhci opkg install kmod-usb-ohci insmod usb-ohci opkg install kmod-usb-storage block-mount kmod-fs-ext4 kmod-nls-cp437 kmod-nls-cp850 kmod-nls-iso8859-1 kmod-nls-iso8859-15 kmod-scsi-core e2fsprogs fdisk
update all packages
opkg update opkg list-upgradable | cut -f 1 -d ' ' | xargs -r opkg upgrade
Clear Flash
mtd -r erase rootfs_data
Sysupgrade
wget http://downloads.openwrt.org/snapshots/trunk/ar71xx/openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin sysupgrade -v openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin
/etc/profile add
alias l='ls -1Flah' alias dirsize='clear; for each in $(ls) ; do du -hs "$each" ; done'