According to MPC8641D Linux User manual, I think you need to choose the first option, booting u-boot first in ASMP mode and separately give the bootm command through separate serial port.
First please switch the system to the ASMP mode, please switch the SW5[6] on the Ver.1.03 board to OFF and connect the J1 header in the board to the second Serial Port. On the Ver.1.02 board, please turn the ASMP/SMP swtich to ASMP side. The switch is under the label “SMP – ASMP”.
In ASMP mode, core 0 U-Boot will boot up from Serial Port 1 with eTSEC1, eTSEC3 and the first PCI Express bus, core 1 U-Boot will boot up from Serial Port 2 with eTSEC2 and eTSEC4 and the second PCI Express bus (PCI Express slot).
Power on or reset the system, the board will boot up completely for ASMP mode. The console of core 0 is on Serial Port 1 and the console of core 1 is on Serial Port 2. The core 0 kernel could use the harddisk RFS for its root file system and core1 use ramdisk boot.
Then run different commands at core0 and core1 in U-Boot prompt:
Core0:
=> run asmpboot0
Core1:
=> run asmpboot1
u-boot environment is as the following.
=> setenv boothdno 0
=> setenv bootpartition 3
=> setenv rfsdev /dev/sda3
=> setenv bootfile /boot/uImage
=> setenv dtbfile /boot/mpc8641_hpcn.dtb
=> setenv loadimage ‘ext2load scsi $boothdno:$bootpartition $loadaddr $bootfile;ext2load scsi $boothdno:$bootpartition $dtbaddr $dtbfile'
=> setenv sethdbootarg ‘setenv bootargs root=$rfsdev console=$consoledev,$baudrate $othbootargs’
=> setenv hdboot 'run loadimage;bootm $loadaddr - $dtbaddr'
=> setenv bootfilecore0 /boot/uImage.asmp
=> setenv bootfilecore1 <your_asmp_uImage>
=> setenv asmpboot0 'set bootfile $bootfilecore0; set dtbfile $dtbcore0; run sethdbootarg; run hdboot'
=> setenv asmpboot1 'set bootfile $bootfilecore1; set dtbfile $dtbcore1; run ramboot'
Have a great day,
Yiping Wang
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------