title: The begining and end adress of the Flash memory
body: <p>I am trying to run linux on an Arduino Yun board. The Arduino board contains an <a href="https://www.openhacks.com/uploadsproductos/ar9331_datasheet.pdf" rel="nofollow noreferrer">Atheros AR9331 chipset </a> </p>
  
  <p>On U-Boot These are the steps I am doing:</p>
  
  <p>1- Download the kernel :</p>
  
  <pre><code>ar7240&gt; tftp 0x80060000 openwrt-ar71xx-generic-uImage-lzma.bin;
  Load address: 0x80060000
  Loading: #################################################################
       #################################################################
       #################################################################
       #################################################################
       ######################
  done
  Bytes transferred = 1441863 (160047 hex)
  </code></pre>
  
  <p>2- Erase Flash in order to copy the kernel:</p>
  
  <pre><code>ar7240&gt; erase 0x9fEa0000 +0x160047 
  Error: end address (0xa0000046) not in flash!
  Bad address format
  </code></pre>
  
  <p>This is the problem It seems that <code>0x9fEa0000 +0x160047</code> exceeds the total size of the flash.</p>
  
  <p>So my questions are:</p>
  
  <p>1- How can I figure the total amount of memory reserved for the flash in Uboot (From wich address it starts and ends), I am thinking about changing <code>0x9fEa0000</code> by a fewer address but i'am afraid i can harm other things  </p>
  
  <p>This is the output of the help:</p>
  
  <pre><code>ar7240&gt; help
  ?       - alias for 'help'
  boot    - boot default, i.e., run 'bootcmd'
  bootd   - boot default, i.e., run 'bootcmd'
  bootm   - boot application image from memory
  cp      - memory copy
  erase   - erase FLASH memory
  help    - print online help
  md      - memory display
  mm      - memory modify (auto-incrementing)
  mtest   - simple RAM test
  mw      - memory write (fill)
  nm      - memory modify (constant address)
  ping    - send ICMP ECHO_REQUEST to network host
  printenv- print environment variables
  progmac - Set ethernet MAC addresses
  reset   - Perform RESET of the CPU
  run     - run commands in an environment variable
  setenv  - set environment variables
  tftpboot- boot image via network using TFTP protocol
  version - print monitor version
  </code></pre>
  
  <p>2- Is there someone experienced with <a href="https://www.openhacks.com/uploadsproductos/ar9331_datasheet.pdf" rel="nofollow noreferrer">Atheros AR9331 chipset </a> who can help me find the Flash mapping (From where it starts and ends) from the datasheet </p>