Page tree
Skip to end of metadata
Go to start of metadata


Updating to Debian ubi.img.1.0.6 (just the file system partition), then just type "boot".

All is lost !

Of course, anything that you have placed or configured on the previous image is GONE! right ? Yes of course, we've just re-imaged the filesystem partition.



Flashing the dtb, Kernel and the Debian FS with ubi v1.0.6:

=> mmc rescan
=> fatls mmc 0
            lost.dir/
            android/
            music/
            camera/
            photos/
            videos/
            documents/
            voice/
            books/
            downloads/
            paysage/
            chats/
            system volume information/
            star trek the motion picture (1979)/
            rt documentation/
    37018   am335x-owasys.dtb
    74400   mlo
    40323   owasys104.png
 113770496   ubi.img.1.0.6
  8912896   ubi.img.backup1
   472172   u-boot.img
  3523888   zimage

7 file(s), 15 dir(s)

=> fatload mmc 0 0x82000000 am335x-owasys.dtb
reading am335x-owasys.dtb
37018 bytes read in 22 ms (1.6 MiB/s)
=>
=> nand erase 0x200000 0x80000

NAND erase: device 0 offset 0x200000, size 0x80000
Erasing at 0x200000 -- 100% complete.
OK
=> nand write 0x82000000 0x200000 0x80000

NAND write: device 0 offset 0x200000, size 0x80000
 524288 bytes written: OK
=> fatload mmc 0 0x82000000 zImage
reading zImage
3523888 bytes read in 378 ms (8.9 MiB/s)
=> nand erase 0x400000 0x1000000

NAND erase: device 0 offset 0x400000, size 0x1000000
Erasing at 0x1380000 -- 100% complete.
OK
=> nand write 0x82000000 0x400000 0x1000000

NAND write: device 0 offset 0x400000, size 0x1000000
 16777216 bytes written: OK
=> fatload mmc 0 0x82000000 ubi.img.1.0.6
reading ubi.img.1.0.6
113770496 bytes read in 11653 ms (9.3 MiB/s)
=> nand erase 0x2800000 0x3d800000

NAND erase: device 0 offset 0x2800000, size 0x3d800000
Erasing at 0x3ff80000 -- 100% complete.
OK
=> nand write 0x82000000 0x2800000 0x7000000

NAND write: device 0 offset 0x2800000, size 0x7000000
 117440512 bytes written: OK

=> boot
Booting from nand ...

NAND read: device 0 offset 0x200000, size 0x80000
 524288 bytes read: OK







Falsh device = /dev/ubi0


Flash layout

# cat /proc/mtd

dev: size erasesize name
mtd0: 00080000 00080000 "NAND.SPL"
mtd1: 00080000 00080000 "NAND.SPL.backup1"
mtd2: 00080000 00080000 "NAND.SPL.backup2"
mtd3: 00080000 00080000 "NAND.SPL.backup3"
mtd4: 00080000 00080000 "NAND.u-boot-spl-os"
mtd5: 00080000 00080000 "NAND.u-boot"
mtd6: 00080000 00080000 "NAND.u-boot-env"
mtd7: 00080000 00080000 "NAND.u-boot-env.backup1"
mtd8: 01000000 00080000 "NAND.kernel"
mtd9: 01400000 00080000 "NAND.file-system.backup1"
mtd10: 3d800000 00080000 "NAND.file-system"

Partition
Partition name.Purpose
size

Offset in blocks

HEXADECIMAL

Image name
mtd0SPL512k0MLO
mtd1SPL.b1512k80,000???
mtd2SPL.b2512k100,000???
mtd3SPL.b3512k180,000???
mtd4u-boot-spl-os512k200,000am335x-owasys.dtb
mtd5u-boot512k280,000u-boot.img
mtd6u-boot-env512k300,000???
mtd7u-boot-env.b1512k380,000???
mtd8kernel16 M400,000zImage
mtd9file-system.backup120M1,400,000ubi.img.backup1
mtd10file-system.Normal984M2,800,000ubi.img.1.0.3


No backup boot

Hello Martin,
The booting sequence has been defined in this way for security reasons, to avoid third party sw being booted from a SD card. If you brick the unit, let's say because the u-boot has been wrongly flashed, the only solution is to send it back to owasys to recover it.
About the partitioning, this has been adopted because they are based in Beaglebone structures and the unused ones are kept just in case, for future use. And the backup partition can be left untouched, just not write to it. It is meant to boot from this when the main FS does not boot, in order to try to repair it, nothing else.

Best regards / Un saludo

Iñigo Alday
OWASYS
Parque tecnologico 207B
48160 Derio - Bizkaia (Spain)
Tel: +34 946 025 336 / +34 637 371 302
inigo.alday@owasys.com 

2018-03-06 17:57 GMT+01:00 Martin Politick <mpolitick@wencomine.com>:
On B)
Yes I've read that part, does it not assume that:  mtd0 &  mtd5 are all valid ?
What I mean is what is mtd1, mtd2, mtd3 and how can I use it ?
I assume that the boot ssequence is : http://processors.wiki.ti.com/index.php/Boot_Sequence
If, for some reason i BRICK my Owasys43, is there a way for me to set the pins to "SW4 = 00100111 (high to low, i.e. SW4.1 = 1)" to make the CPU boot from the external card ?
Also, would it not be safer to keep the  file-system.backup1 as it was in a known good state and not overwrite it in case  ubi.img.1.0.3 is wrong ?
Say flash "nand write 0x82000000 0x2800000 0x7000000", then reboot and verify it works then update the "nand write 0x82000000 0x1400000 0x1000000"



ubinfo /dev/ubi0 -a

mtd_debug info /dev/mtd0




 

device nand0 <nand.0>, # parts = 10
#: name size offset mask_flags
0: NAND.SPL 0x00080000 0x00000000 0
1: NAND.SPL.backup1 0x00080000 0x00080000 0
2: NAND.SPL.backup2 0x00080000 0x00100000 0
3: NAND.SPL.backup3 0x00080000 0x00180000 0
4: NAND.u-boot-spl-os 0x00080000 0x00200000 0
5: NAND.u-boot 0x00080000 0x00280000 0
6: NAND.u-boot-env 0x00080000 0x00300000 0
7: NAND.u-boot-env.backup10x00080000 0x00380000 0
8: NAND.kernel 0x01000000 0x00400000 0
9: NAND.file-system.backup1-(NAND.file-system0x01400000 0x01400000 0

 


 

active partition: nand0,0 - (NAND.SPL) 0x00080000 @ 0x00000000

 


 

defaults:
mtdids : nand0=nand.0
mtdparts: mtdparts=nand.0:512k(NAND.SPL),512k(NAND.SPL.backup1),512k(NAND.SPL.backup2),512k(NAND.SPL.backup3),512k(NAND.u-boot-spl-os),512k(NAND.u-boot),512k(NAND.u-boot-env),512k(NAND.u-boot-env.backup1),16m(NAND.kernel),20m(NAND.file-system.backup1-(NAND.file-system)

  • No labels

12 Comments

  1. Anonymous

    It is with sad regret to inform you StarDataGroup.com is shutting down. Fire sale till the 7th of Feb. Any group of databases listed below is $49 or $149 for all 16 databases in this one time offer. You can purchase it at www.StarDataGroup.com and view samples. - LinkedIn Database 43,535,433 LinkedIn Records - USA B2B Companies Database 28,147,835 Companies - Forex Forex South Africa 113,550 Forex Traders Forex Australia 135,696 Forex Traders Forex UK 779,674 Forex Traders - UK Companies Database 521,303 Companies - German Databases German Companies Database: 2,209,191 Companies German Executives Database: 985,048 Executives - Australian Companies Database 1,806,596 Companies - UAE Companies Database 950,652 Companies - Affiliate Marketers Database 494,909 records - South African Databases B2B Companies Database: 1,462,227 Companies Directors Database: 758,834 Directors Healthcare Database: 376,599 Medical Professionals Wholesalers Database: 106,932 Wholesalers Real Estate Agent Database: 257,980 Estate Agents Forex South Africa: 113,550 Forex Traders Visit www.stardatagroup.com or contact us with any queries. Kind Regards, StarDataGroup.com
  2. Anonymous

    Use SendBulkMails.com to run email campaigns from your own private dashboard. Cold emails are allowed and won't get you blocked :) - 1Mil emails / mo @ $99 USD - Dedicated IP and Domain Included - Detailed statistical reports (delivery, bounce, clicks etc.) - Quick and easy setup with extended support at no extra cost. - Cancel anytime! Regards, www.SendBulkMails.com
  3. Anonymous

    Get your own Covid-19 test results in 15 minutes on Buy-Rapid-Tests.com Simple 3 step process - anyone can do it. We have FDA Authorized Covid-19 Rapid Test Kits - Most orders ship standard within 48 hours. Order minimum is only - 1 Box Each Box includes: - 25 individual Covid-19 tests cassettes - 25 blood droppers - 1 bottle of buffer/testing solution Buy as many boxes as you would like. These tests are perfect for your organization, business, restuarant or group. Price is $36 per test (25 tests per box) and that includes shipping to any location for $50 We offer 10% wholesale price breaks for quantities of 5 boxes or more. Regards, Buy-Rapid-Tests.com
    1. You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.
  4. Anonymous

    SendBulkMails.com allows you to reach out to clients via cold email marketing. - 1Mil emails starter package - Dedicated IP and Domain Included - Detailed statistical reports (delivery, bounce, clicks etc.) - Quick and easy setup with extended support at no extra cost. - Cancel anytime! SendBulkMails.com
  5. Anonymous

    Hi, I'm always asked what is the quickest way to make money online, when you are just starting out? Well here's the definitive answer that question: ==> https://sesforyou.com New Book Reveals How I Built A 7-Figure Online Business Using Nothing But Ethical Email Marketing To Drive Revenue, Sales and Commissions... ==> https://sesforyou.com Regards, SesForYou.com
  6. Anonymous

    Hello, BestLocalData.com has a special package you get any group of databases for $49 or $249 for all 16 databases and unlimited emails for a year(Domain, IP, Dashboard included). You can purchase it on BestLocalData.com and see samples if you are interested.
  7. Anonymous

    Your All In One Solution For Creating All The Content You'll Ever Need. Proprietary AI Turns YouTube Videos Into Traffic Getting Articles At The Press Of A Button! We’ve Been Getting Free Autopilot Traffic From Google Without SEO Experience For Over 2 Years By Converting Others YouTube Videos Into Articles… https://warriorplus.com/o2/a/gmvfs/0
  8. Anonymous

    Need extra income? A fully hosted, done for you content + monetisation and a stunning design web based software that creates a fully automated done for you cryptocurrency affiliate site, Visit us: https://warriorplus.com/o2/a/f5s4y/0
  9. Anonymous

    What is Link Bypass? Link Bypass allows you to easily bypass any sales page and generate a new buy link with no coding required and just a few clicks of your mouse. How does Link Bypass work? Step #1 - Choose any sales page you want to bypass and link bypass with automatically create a custom payment link Step #2 - Add your new link to any landing page, sales page, or email with a few clicks of your mouse (Use your favorite page-building software or simply ‘copy and paste’) Step #3 - Boost conversions and make more money on affiliate promotions Visit us: https://warriorplus.com/o2/a/q8rmt/0
  10. Anonymous

    Hey, It was nice speaking to you the other day, this is the service I was telling you about that helped us boost our ROI almost 2000% Its a company called Lifemail.studio sorry it took so long to get back to you. They allow you to send any email doesn't matter what. We dealt with a guy named Michael, he was friendly and got us setup really quickly. Regards, Emmett
  11. Anonymous

    Hello, Send unlimited emails To unlimited lists with one click and no monthly fees! $99 once off! LifeMailNow.com
  12. Anonymous

    Hey! BestLocalData has an amazing special. 16 databases for $99. LinkedIn(43million records) USA B2B (28 million companies), Australia, South Africa, UK, Germany and all of that included. Instant delivery! https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=7S34LZQSKKQHG Or check out more on our website! Regards, Stephan