Skip to content

Instantly share code, notes, and snippets.

@krusic22
Last active January 25, 2023 01:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krusic22/94de28578a5e58fe354d2bb016dc4c8d to your computer and use it in GitHub Desktop.
Save krusic22/94de28578a5e58fe354d2bb016dc4c8d to your computer and use it in GitHub Desktop.
Need to switch partition from partA to partB
RUNCMD = activeImage 1; sf probe; sf erase 0x1c0000 0x20000 && sf write 0x41004890 0x1c0000 0x10000; sf erase 0x310000 0x20000 && sf write 0x41004890 0x310000 0x10000
Current Partition is : partB
Need to switch partition from partB to partA
RUNCMD = activeImage 0; sf probe; sf erase 0x1c0000 0x20000 && sf write 0x41004890 0x1c0000 0x10000; sf erase 0x310000 0x20000 && sf write 0x41004890 0x310000 0x10000
fw_setenv PKRstCnt 0
************************************************************
* *
* U-BOOT For Nokia System *
* *
************************************************************
Boot Version : NUB.2D.12
Build Date : Mar 7 2018-23:25:29
U-Boot 2012.07 [Chaos Calmer 15.05.1,unknown] (Mar 07 2018 - 23:25:24)
smem ram ptable found: ver: 0 len: 5
NWIFI: reserved 1MB for ramoops. Current size 0x1fb00000
NWIFI: start of the ramoops partition 0x5fb00000
DRAM: 491 MiB
cdp: machine id 0x136c
cdp: get bootflash type 6!!!!!
NWIFI: flash_block_size = 65536, or 0x10000
NWIFI: bootCfgStartAddr = 0x1c0000, bootCfgSize = 0x20000
NWIFI: bootCfg1StartAddr = 0x310000, bootCfg1Size = 0x20000
NAND: SF: Detected MX25U3235F with page size 4 KiB, total 4 MiB
ipq_spi: page_size: 0x100, sector_size: 0x1000, size: 0x400000
260 MiB
SF: Detected MX25U3235F with page size 4 KiB, total 4 MiB
PCI0 Link Intialized
PCI1 Link Intialized
In: serial
Out: serial
Err: serial
cdp: get part failed for rootfs
Net: eth0, eth1
PKRstCnt = 5
Current Partition is : partB
Need to switch partition from partB to partA
RUNCMD = activeImage 0; sf probe; sf erase 0x1c0000 0x20000 && sf write 0x41004890 0x1c0000 0x10000; sf erase 0x310000 0x20000 && sf write 0x41004890 0x310000 0x10000
SF: Detected MX25U3235F with page size 4 KiB, total 4 MiB
SF: Detected MX25U3235F with page size 4 KiB, total 4 MiB
Erasing SPI flash...Writing to SPI flash...done
After processing : PKRstCnt = 0
Hit any key to stop autoboot: 0
(IPQ) # reboot
Unknown command 'reboot' - try 'help'
(IPQ) # reset
resetting ...
Resetting with watch dog!
************************************************************
* *
* U-BOOT For Nokia System *
* *
************************************************************
Boot Version : NUB.2D.12
Build Date : Mar 7 2018-23:25:29
U-Boot 2012.07 [Chaos Calmer 15.05.1,unknown] (Mar 07 2018 - 23:25:24)
smem ram ptable found: ver: 0 len: 5
NWIFI: reserved 1MB for ramoops. Current size 0x1fb00000
NWIFI: start of the ramoops partition 0x5fb00000
DRAM: 491 MiB
cdp: machine id 0x136c
cdp: get bootflash type 6!!!!!
NWIFI: flash_block_size = 65536, or 0x10000
NWIFI: bootCfgStartAddr = 0x1c0000, bootCfgSize = 0x20000
NWIFI: bootCfg1StartAddr = 0x310000, bootCfg1Size = 0x20000
NAND: SF: Detected MX25U3235F with page size 4 KiB, total 4 MiB
ipq_spi: page_size: 0x100, sector_size: 0x1000, size: 0x400000
260 MiB
SF: Detected MX25U3235F with page size 4 KiB, total 4 MiB
PCI0 Link Intialized
PCI1 Link Intialized
In: serial
Out: serial
Err: serial
cdp: get part failed for rootfs
Net: eth0, eth1
PKRstCnt = 0
Current Partition is : partA
SF: Detected MX25U3235F with page size 4 KiB, total 4 MiB
Erasing SPI flash...Writing to SPI flash...done
After processing : PKRstCnt = 1
Hit any key to stop autoboot: 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment