If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.

0
U

Property:phison

From BoxMatrix
(Redirected from phison)


BoxMatrix >> Shell-Commands >> phison @ BoxMatrix   -   IRC-Chat   -   Translate: de es fr it nl pl
News Selectors Models Accessories Components Environment Config Commands System Webif Software Develop Lexicon Community Project Media

Startup-Scr Hotplug-Scr BusyBox-Cmds Bash-Cmds AVM-Cmds Chipset-Cmds Linux-Cmds Shared-Libs Kernel-Mods Research

Chipset-Command

Goto:   Examples  -  Dependencies   -   Model-Matrix   -   Symbols   -   SMW-Browser

Details

phison is an firmware updating tool for Phison EMMC controllers, installed in the ARM Linux on Puma6 and Puma7 models.

WARNING:
Stay away of this if you don't know what you are doing. This is a low-level tool which can damage your box!

6490 armconsole fw 7.29 - It obviously has a dependency problem, maybe intentionally:

# phison -h
/usr/sbin/phison: can't load library 'libc.so.0'
# ls -l /lib/libc.so*
lrwxrwxrwx    1 root     root            19 Nov  5  2021 /lib/libc.so.1 -> libuClibc-1.0.14.so
# ln -s /lib/libuClibc-1.0.14.so /var/libc.so.0
# export LD_LIBRARY_PATH=/var

# phison -h

Phison eMMC controller F/W upgrade Utility

phison [controller type] <commands> [flags]

controller type:
   PS7000          - For Phison PS7000 controller
   PS8211          - For Phison PS8211 controller
   Note: If controller type is not set, then it try to auto-detect the type.flags:

  -h -help         - Print this help.
  -v -verbose      - Open debug prints.
  -d -debug        - Debug.
  -m -mmc          - MMC Debug.
  -fw <filename>   - Load F/W image.
  -man <filename>  - Load manufacturer image.

commands:
  info             - Print Flash information.
  upgrade          - Upgarde Phison firmware.
                     F/W and Manufacturer files, must be loaded with '-fw' and '-man' flags
  check            - Prints and verify image files.
                     F/W or/and Manufacturer files, must be loaded with '-fw' and '-man' flags
  rescan <sec>     - Reinit the eMMC card, and sleep <sec> seconds between on/off

phison is used with a range of scripts, configuration and firmware files located in /etc/mmc:

# ls -lR /etc/mmc

/etc/mmc:
drwxr-xr-x    3 root     root           128 Nov  5  2021 PS7000
drwxr-xr-x    3 root     root           116 Nov  5  2021 PS8211
-rwxrwxrwx    1 root     root          2001 Nov  5  2021 mmc_auto_settings.sh
-rwxrwxrwx    1 root     root          2750 Nov  5  2021 mmc_auto_upgrade.sh
-rwxrwxrwx    1 root     root           326 Nov  5  2021 mmc_settings_default.cfg

/etc/mmc/PS7000:
drwxr-xr-x    2 root     root            65 Nov  5  2021 phison_fw
-rwxrwxrwx    1 root     root           945 Nov  5  2021 read_image_version.sh
-rwxrwxrwx    1 root     root           115 Nov  5  2021 read_mmc_fw_version.sh
-rwxrwxrwx    1 root     root          1252 Nov  5  2021 upgrade_mmc_fw.sh

/etc/mmc/PS7000/phison_fw:
-rwxrwxrwx    1 root     root         37579 Nov  5  2021 34_A.BIN
-rwxrwxrwx    1 root     root        123392 Nov  5  2021 34_B.BIN
-rwxrwxrwx    1 root     root           346 Nov  5  2021 phison.cfg

/etc/mmc/PS8211:
drwxr-xr-x    2 root     root            89 Nov  5  2021 phison_fw
-rwxrwxrwx    1 root     root           945 Nov  5  2021 read_image_version.sh
-rwxrwxrwx    1 root     root           115 Nov  5  2021 read_mmc_fw_version.sh
-rwxrwxrwx    1 root     root           984 Nov  5  2021 upgrade_mmc_fw.sh

/etc/mmc/PS8211/phison_fw:
-rwxrwxrwx    1 root     root         82432 Nov  5  2021 PS8211_SLC_BFW_A.BIN
-rwxrwxrwx    1 root     root        213504 Nov  5  2021 PS8211_SLC_BFW_B.BIN
-rwxrwxrwx    1 root     root           368 Nov  5  2021 phison.cfg

Examples

6490 armconsole fw 7.29:

# phison info

Phison PS8200:
  FW ver:  6.10_V72, MLC.
  NAND ID: 0x2C48044AA5
Done.

# phison info -v

No controller type in command line - set Auto Detect
Initialize host controller. 
Reset and initialize MMC controller to MAN mode.
Check Flash Setting in Code mode
Reading flash settings.

Flash Settings: 
  NAND Flash ID ................. 0x2C48044AA50000
  Flash_Number .................. 0x01
  IC Version .................... PS8200
  FW Version .................... 6.10 V72
  Maximum FDevice ............... 1
  MAX FPage ..................... 0x1000
  MAX Card Phy Blocks ........... 0x0400
  MAX Card logic Blocks ......... 0x0397
  Parallel Mode ................. 0x00
  SLC Flash ..................... 0x00
  MLC Flash ..................... 0x01
  SD/MMC ........................ MMC/eMMC
  2Plane Flash .................. 0x01
  SP_Mode ....................... 0x00
  4K Flash ...................... 0x01
  8K Flash ...................... 0x01

Phison PS8200:
  FW ver:  6.10_V72, MLC.
  NAND ID: 0x2C48044AA5

Verify HW-Page
Reading HW-Page.

HW page:
  Name .......................... HV50
  Controller Driving ............ A2
  Data Driving .................. 42
  Write Clock ................... C8
  Read Cock ..................... C1
  Cache Program Disable ......... 45
  Cache Read Enable ............. 52
  Upgrade Enable ................ 0
  WL on boot, Deactivate ........ 1
  Health Status Enable .......... 48

Verify WP-Page
Reading WP-Page.

WP page:
  Default Password:  
   FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF,FF
  CSD Flag controlled bit: 255
  CSD Register: 
   CSD structure ................ 0x3 
   System specification ver ..... 0x4 
   Reserved ..................... 0x0 
   TAAC ......................... 0x4F 
   NSAC.......................... 0x1 
   Max. bus clock frequency ..... 0x32 
   CCC .......................... 0xF5 
   Max. read data block length .. 0xA 
   Partial blocks read allowed .. 0x0 
   Write block misalignment...... 0x0 
   Read block misalignment ...... 0x0 
   DSR implemented .............. 0x1 
   Reserved ..................... 0x0 
   Device size .................. 0x4E4F 
   Max. read current @ VDD min .. 0x7 
   Max. read current @ VDD max .. 0x7 
   Max. write current @ VDD min . 0x7 
   Max. write current @ VDD max . 0x7 
   Device size multiplier ....... 0x7 
   Erase group size ............. 0x1F 
   Erase group size multiplier .. 0x1F 
   Write protect group size...... 0x3 
   Write protect group enable ... 0x1 
   Manufacturer default ECC ..... 0x0 
   Write speed factor ........... 0x2 
   Max. write data block length . 0x9 
   Partial blocks write allowed . 0x0 
   Content protection app ....... 0x0 
   File format group ............ 0x0 
   Copy flag (OTP) .............. 0x0 
   Permanent write protection ... 0x0 
   Temporary write protection ... 0x0 
   File format .................. 0x0 
   ECC code ..................... 0x0 
   CRC .......................... 0x73 
   Not used, always 1 ........... 0x1 
  CID Register: 
   Manufacturer ID .............. 0xFE
   Card/BGA ..................... 0x1
   OEM/Application ID ........... 0x4E
   Product name ................. MMC02G
   Product revision ............. 4.2
   Serial number ................ 0x8E4AXXXX
   Manufacturing date ........... 3/2000
   CRC .......................... 0x6A

Resume to normal MMC mode.
Done.

Dependencies

Daily updated index of all dependencies of this command. Last update: 2024-04-23 07:28 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.

Relation Typ Object Mod Firmware Info Origin
Depends on lib ld.so 3 7.14 - 7.29 Dynamic linker / loader Linux
Depends on lib libc.so 6 6.20 - 7.29 Standard C library Linux
Depends on lib libgcc_s.so 3 7.04 - 7.29 GCC low-level runtime library Linux
Depends on lib libslibc.so 3 7.14 - 7.29 Bounds-checking C functions for use with the GNU C library Linux
4 dependencies for this command

Model-Matrix

Daily updated index of the presence, path and size of this command for each model. Last update: 2024-04-23 05:08 GMT.
Showing all models using this command. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom) label in the Model column shows which CPU is meant for models with multiple Linux instances.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.

Model Firmware Path Size
FRITZ!Box 6430 Cable (arm) 6.84 - 7.29 /usr/sbin 34.1k
FRITZ!Box 6490 Cable (arm) 6.20 - 7.29 /usr/sbin 33.4k - 34.1k
FRITZ!Box 6590 Cable (arm) 6.83 - 7.29 /usr/sbin 34.1k
FRITZ!Box 6591 Cable (arm) 7.12 - 7.29 /usr/sbin 98.1k - 141k
FRITZ!Box 6660 Cable (arm) 7.14 - 7.29 /usr/sbin 141k
FRITZ!Box 6690 Cable (arm) 7.28 - 7.29 /usr/sbin 141k
6 models use this command

Symbols

Daily updated index of all symbols of this command. Last update: 2024-04-23 07:28 GMT.

Firmware Symbol
7.14 - 7.29 do_sig
1 symbol for this command

SMW-Browser

Information is currently being retrieved from the backend.