-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbreadbee.mk
More file actions
21 lines (18 loc) · 902 Bytes
/
breadbee.mk
File metadata and controls
21 lines (18 loc) · 902 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
UBOOT_BB=$(OUTPUTS)/dev_u-boot_breadbee.img
IPL_BB=$(OUTPUTS)/dev_ipl_breadbee
uboot_bb: toolchain outputsdir
$(MAKE) -C u-boot clean
PATH=$(BUILDROOT)/output/host/bin:$$PATH \
$(MAKE) -C u-boot msc313_breadbee_defconfig
PATH=$(BUILDROOT)/output/host/bin:$$PATH \
$(MAKE) -C u-boot CROSS_COMPILE=$(CROSS_COMPILE) -j8
cp u-boot/u-boot.img $(UBOOT_BB)
cp u-boot/ipl $(IPL_BB)
fix_brick: nor_ipl
sudo flashrom --programmer ch341a_spi -w $(OUTPUTS)/nor_ipl \
-l /media/junk/hardware/breadbee/flashrom_layout -i ipl_uboot_spl -N
sudo flashrom --programmer ch341a_spi -w $(OUTPUTS)/nor_ipl \
-l /media/junk/hardware/breadbee/flashrom_layout -i uboot -N
fix_brick_spl:
sudo flashrom --programmer ch341a_spi -w nor -l /media/junk/hardware/breadbee/flashrom_layout -i ipl_uboot_spl -N
sudo flashrom --programmer ch341a_spi -w nor -l /media/junk/hardware/breadbee/flashrom_layout -i uboot -N