67G6 Petalinux Problems
Edit this on GitLab
Common Problems with Petalinux on the 67G6
67G6 Problems
Problem: Image.ub was flashed, but isn’t booting (stuck in uboot)
Solution: This occurs due to old configuration in uboot. The kernel was being loaded from an old location. Enviorment variable “kernel_offset” must be updated to the proper location. Here is the error messaged that uboot gives you, as well as the fix shown:
Problem: Petalinux is booting, but mbcore listeners are not responding
Solution: This occurs if the eeprom hasn’t been formatted. Please run the eeprom utility to generate the board’s eeprom. This program is located at M:\Maximillion\ClientApps\Max_EEPROMScriptBuilder\FetchAndRunMaxEEPROMScriptBuilder
After the eeprom data is loaded on the board, platformopstartup will run allowing listeners to run as well.
Problem: Upgrading the board using MaxDownloader completes on everything except the IMG partition, causing no load on boot (stays in uboot)
Solution: This is due to a size change in new revisions of petalinux. To resolve this, there are three options:
Option 1) JTAG the latest version of petalinux onto the board directly. This can be located at M:\Maximillion\MaxFileStore\G6\67G6. Select the highest number version (eg, v21 at time of writing) and run the flash_uboot_us.bat file. This will update to the new partition scheme which will remedy the problem for future upgrades
Option 2) Using TeraTerm (this does not work with putty), initiate a ymodem load of latest version of latest image.ub. The instructions are as follows:
-
From the uboot prompt, type “loady” and hit enter
From teraTerm’s menu, go to File>Transfer>YMODEM>Send… -
Navigate to the latest image.ub file, this will be located in M:\Maximillion\MaxFileStore\G6\67G6. You want to navigate to the highest number version folder (eg, v21 at time of writing) and select image.ub
-
YModem Send takes approx. 25 minutes to run.
-
-
After send is completed, type “bootm” into the uboot prompt. This will boot petalinux.
-
Login to petalinux (“root”/”root” for username/password)
-
Kill mbcore by typing “/etc/init.d/mbcore stop” at the shell prompt
-
Run the configmode listener by typing “RunConfigListenerTCP1OnBrd” and then enter key
Re-run the MaxDownloader with IMG partition selected. It will work this time and petalinux will work.
Option 3) Using tftpd. The instructions are as follows:
-
Copy the latest version of image.ub into a directory on your local machine. You can locate this file at in M:\Maximillion\MaxFileStore\G6\67G6 and then by selecting the highest number version folder (eg, v21 at the time of writing).
-
Point the “Current directory” of TFTPd64 to the location of where you copied image.ub
-
From uboot, type “setenv ipaddr 192.168.1.16”. Hit enter
-
Again from uboot, type “setenv serverip x.x.x.x” where x.x.x.x is your local interface connected to the 67g6. Hit enter
-
From uboot, type “tftpboot image.ub”. Hit enter.
-
After it finishes loading, type “bootm” to run petalinux
-
Login to petalinux (“root”/”root” for username/password)
-
Kill mbcore by typing “/etc/init.d/mbcore stop” at the shell prompt
-
Run the configmode listener by typing “RunConfigListenerTCP1OnBrd” and then enter key
Re-run the MaxDownloader with IMG partition selected. It will work this time and petalinux will work.
Notes: tftp needs to be unblocked in the windows firewall in order to work properly.