linux: enable CONFIG_EEPROM_AT24 and builtin CONFIG_POLARFIRE_SOC_GENERIC_SERVICE, use bmaptool to geneate quick flashign image

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
default-cape-symlinks
Robert Nelson 1 year ago
parent de8f67cc0a
commit 15520e8170

@ -22,9 +22,11 @@ cp -v ../patches/linux/Makefile arch/riscv/boot/dts/microchip/
make ARCH=riscv CROSS_COMPILE=${CC} clean make ARCH=riscv CROSS_COMPILE=${CC} clean
make ARCH=riscv CROSS_COMPILE=${CC} mpfs_defconfig make ARCH=riscv CROSS_COMPILE=${CC} mpfs_defconfig
./scripts/config --enable CONFIG_EEPROM_AT24
./scripts/config --enable CONFIG_OF_OVERLAY ./scripts/config --enable CONFIG_OF_OVERLAY
./scripts/config --enable CONFIG_GPIO_MICROCHIP_CORE ./scripts/config --enable CONFIG_GPIO_MICROCHIP_CORE
./scripts/config --enable CONFIG_MCP356X ./scripts/config --enable CONFIG_MCP356X
./scripts/config --enable CONFIG_POLARFIRE_SOC_GENERIC_SERVICE
echo "make -j${CORES} ARCH=riscv CROSS_COMPILE=${CC} Image modules dtbs" echo "make -j${CORES} ARCH=riscv CROSS_COMPILE=${CC} Image modules dtbs"
make -j${CORES} ARCH=riscv CROSS_COMPILE=${CC} Image modules dtbs make -j${CORES} ARCH=riscv CROSS_COMPILE=${CC} Image modules dtbs

@ -15,10 +15,21 @@ if [ -d ./tmp ] ; then
rm -rf ./tmp || true rm -rf ./tmp || true
fi fi
if [ -f ./images/sdcard.img ] ; then
rm -rf ./images/sdcard.img || true
fi
genimage --config genimage.cfg genimage --config genimage.cfg
if [ -d ./tmp ] ; then if [ -d ./tmp ] ; then
rm -rf ./tmp || true rm -rf ./tmp || true
fi fi
if [ -f /usr/bin/bmaptool ] ; then
if [ -f ./images/sdcard.bmap ] ; then
rm -rf ./images/sdcard.bmap || true
fi
/usr/bin/bmaptool -d create -o ./images/sdcard.bmap ./images/sdcard.img
fi
# #

@ -808,6 +808,8 @@ CONFIG_DEV_COREDUMP=y
# CONFIG_DEBUG_DEVRES is not set # CONFIG_DEBUG_DEVRES is not set
# CONFIG_DEBUG_TEST_DRIVER_REMOVE is not set # CONFIG_DEBUG_TEST_DRIVER_REMOVE is not set
# CONFIG_TEST_ASYNC_DRIVER_PROBE is not set # CONFIG_TEST_ASYNC_DRIVER_PROBE is not set
CONFIG_REGMAP=y
CONFIG_REGMAP_I2C=y
CONFIG_DMA_SHARED_BUFFER=y CONFIG_DMA_SHARED_BUFFER=y
# CONFIG_DMA_FENCE_TRACE is not set # CONFIG_DMA_FENCE_TRACE is not set
CONFIG_GENERIC_ARCH_TOPOLOGY=y CONFIG_GENERIC_ARCH_TOPOLOGY=y
@ -1035,7 +1037,7 @@ CONFIG_MPFS_DMA_PROXY=y
# #
# EEPROM support # EEPROM support
# #
# CONFIG_EEPROM_AT24 is not set CONFIG_EEPROM_AT24=y
# CONFIG_EEPROM_AT25 is not set # CONFIG_EEPROM_AT25 is not set
# CONFIG_EEPROM_LEGACY is not set # CONFIG_EEPROM_LEGACY is not set
# CONFIG_EEPROM_MAX6875 is not set # CONFIG_EEPROM_MAX6875 is not set
@ -3335,7 +3337,7 @@ CONFIG_RPMSG_VIRTIO=y
# end of Enable LiteX SoC Builder specific drivers # end of Enable LiteX SoC Builder specific drivers
CONFIG_POLARFIRE_SOC_SYS_CTRL=y CONFIG_POLARFIRE_SOC_SYS_CTRL=y
CONFIG_POLARFIRE_SOC_GENERIC_SERVICE=m CONFIG_POLARFIRE_SOC_GENERIC_SERVICE=y
# #
# Qualcomm SoC drivers # Qualcomm SoC drivers

Loading…
Cancel
Save