Commits

Elias Bakken committed c4cc165

Worked a bit on making a nice distro

  • Participants
  • Parent commits c3ecdf4

Comments (0)

Files changed (9)

 
 
-#RPATH=/home/root/replicape
-#REMOTE=root@10.24.2.124
 RPATH=/home/root/Replicape
-REMOTE=root@10.24.2.77
-DPATH=Dist/dist_`date +"%y_%d_%m"`/Replicape
-DNAME=Replicape_rev_A2-`date +"%y_%d_%m"`.tgz
+REMOTE=root@192.168.7.2
+DPATH=Dist/dist_`date +"%y_%m_%d"`/Replicape
+DNAME=Replicape_rev_A2-`date +"%y_%m_%d"`.tgz
 
 .PHONY : software firmware eeprom
 
 	mkdir -p $(DPATH)/device_tree
 	mkdir -p $(DPATH)/eeprom
 	mkdir -p $(DPATH)/libs/pypruss
+	mkdir -p $(DPATH)/kernel
+	cp Dist/Makefile $(DPATH)/
 	cp software/*.py $(DPATH)/software/
-	cp firmware/firmware_pru_0.bin $(DPATH)/firmware/
+	cp firmware/firmware_00A2.p firmware/Makefile firmware/pasm $(DPATH)/firmware/
 	cp Device_tree/DTB/* $(DPATH)/device_tree/
-	cp eeprom/eeprom.js eeprom/bone.js eeprom/replicape_00A2.json $(DPATH)/eeprom/
+	cp eeprom/eeprom.js eeprom/bone.js eeprom/replicape_00A2.json eeprom/Makefile $(DPATH)/eeprom/
 	cp -r libs/spi $(DPATH)/libs/
 	cp -r libs/pypruss/dist/* $(DPATH)/libs/pypruss
 	cp -r libs/i2c $(DPATH)/libs/
+	cp libs/Makefile $(DPATH)/libs/
+	cp -r images/3.8.13/* $(DPATH)/kernel/
 	cd $(DPATH)/../ && tar -cvzpf ../$(DNAME) . && cd ..
 	scp Dist/$(DNAME) replicape@scp.domeneshop.no:www/distros/
 	

PCB_rev_A3/Replicape.brd

Binary file modified.

PCB_rev_A3/Replicape.sch

Binary file modified.

PCB_rev_A3/Replicape_BOM_rev_A3.xls

Binary file modified.

PCB_rev_A3/Replicape_Rev_A3_pin-mux.ods

Binary file modified.
+# Makefile for flashing the eeprom of the Replicape
 
-
-RPATH=/home/root/Replicape
-REMOTE=root@10.24.2.124
-
-
-.PHONY : software firmware
-
-eeprom:
-	scp tools/replicape.json tools/eeprom_upload.py Makefile $(REMOTE):$(RPATH)/eeprom
-	ssh $(REMOTE) 'cd Replicape/eeprom; make eeprom_cat'
-
-eeprom_upload: 
-	node ./eeprom.js -w replicape.json
-	python eeprom_upload.py
-
-eeprom_cat:
-	node ./eeprom.js -w replicape.json
-	cat Replicape.eeprom > /sys/bus/i2c/drivers/at24/3-0055/eeprom
-
-software:
-	scp software/*.py $(REMOTE):$(RPATH)/software
-
-minicom:
-	minicom -o -b 115200 -D /dev/ttyUSB1
-
-firmware:
-	scp -r firmware/ $(REMOTE):$(RPATH)
-	ssh $(REMOTE) 'cd $(RPATH)/firmware; make'
-
-pypruss: 
-	scp -r PRU/PyPRUSS $(REMOTE):$(RPATH)/libs/
-	ssh $(REMOTE) 'cd $(RPATH)/libs/PyPRUSS; make && make install'
-
-
-tests:
-	scp -r software/tests $(REMOTE):$(RPATH)/software/
+all:
+	node ./eeprom.js -w replicape_00A2.json
+	cat Replicape.eeprom > /sys/bus/i2c/drivers/at24/1-0055/eeprom

firmware/Makefile

 
-COMPILER=../libs/pypruss/PASM/pasm.arm -b 
 FILENAME=firmware_00A2
 
 .PHONY: clean all
 
 all:
-	$(COMPILER) $(FILENAME).p
-
+	./pasm -b $(FILENAME).p
 
 clean: 
 	rm -rf $(FILENAME).bin
         pypruss.open(0)						            # Open PRU event 0 which is PRU0_ARM_INTERRUPT
         pypruss.pruintc_init()					        # Init the interrupt controller
         pypruss.pru_write_memory(0, 0, [self.ddr_addr, self.ddr_nr_events])		# Put the ddr address in the first region 
-        pypruss.exec_program(0, dirname+"/../firmware/firmware_A2.bin")	# Load firmware "ddr_write.bin" on PRU 0
+        pypruss.exec_program(0, dirname+"/../firmware/firmware_00A2.bin")	# Load firmware "ddr_write.bin" on PRU 0
         self.t = Thread(target=self._wait_for_events)         # Make the thread
         self.running = True
         self.t.start()		        

software/Replicape.py

 
         # Init the 5 Stepper motors (step, dir, fault, DAC channel, name)
         self.steppers["X"] = SMD("GPIO0_27", "GPIO1_29", "GPIO2_4",  0, "X") 
-        self.steppers["Y"] = SMD("GPIO1_12", "GPIO0_22", "GPIO2_5", 1, "Y")  
+        self.steppers["Y"] = SMD("GPIO1_12", "GPIO0_22", "GPIO2_5",  1, "Y")  
         self.steppers["Z"] = SMD("GPIO0_23", "GPIO0_26", "GPIO0_15", 2, "Z")  
         self.steppers["E"] = SMD("GPIO1_28", "GPIO1_15", "GPIO2_1",  3, "Ext1")
         self.steppers["H"] = SMD("GPIO1_13", "GPIO1_14", "GPIO2_2",  4, "Ext2")