aboutsummaryrefslogtreecommitdiff
path: root/src/runner.rs
diff options
context:
space:
mode:
authorDario Nieuwenhuis <[email protected]>2023-05-08 20:27:44 +0200
committerDario Nieuwenhuis <[email protected]>2023-05-08 21:53:03 +0200
commita7dee5b65c602637f8209d46d4611ed846a17459 (patch)
treeb6e574c2101764b8733a4eef677bb2a79e17c9b0 /src/runner.rs
parentd3d424dad348c78222a6d962e2d51b56b485807d (diff)
Change all logging level to debug.
Diffstat (limited to 'src/runner.rs')
-rw-r--r--src/runner.rs22
1 files changed, 11 insertions, 11 deletions
diff --git a/src/runner.rs b/src/runner.rs
index 56b9a609c..98f8aff7f 100644
--- a/src/runner.rs
+++ b/src/runner.rs
@@ -80,12 +80,12 @@ where
80 self.bus 80 self.bus
81 .write8(FUNC_BACKPLANE, REG_BACKPLANE_CHIP_CLOCK_CSR, BACKPLANE_ALP_AVAIL_REQ) 81 .write8(FUNC_BACKPLANE, REG_BACKPLANE_CHIP_CLOCK_CSR, BACKPLANE_ALP_AVAIL_REQ)
82 .await; 82 .await;
83 info!("waiting for clock..."); 83 debug!("waiting for clock...");
84 while self.bus.read8(FUNC_BACKPLANE, REG_BACKPLANE_CHIP_CLOCK_CSR).await & BACKPLANE_ALP_AVAIL == 0 {} 84 while self.bus.read8(FUNC_BACKPLANE, REG_BACKPLANE_CHIP_CLOCK_CSR).await & BACKPLANE_ALP_AVAIL == 0 {}
85 info!("clock ok"); 85 debug!("clock ok");
86 86
87 let chip_id = self.bus.bp_read16(0x1800_0000).await; 87 let chip_id = self.bus.bp_read16(0x1800_0000).await;
88 info!("chip ID: {}", chip_id); 88 debug!("chip ID: {}", chip_id);
89 89
90 // Upload firmware. 90 // Upload firmware.
91 self.core_disable(Core::WLAN).await; 91 self.core_disable(Core::WLAN).await;
@@ -95,10 +95,10 @@ where
95 95
96 let ram_addr = CHIP.atcm_ram_base_address; 96 let ram_addr = CHIP.atcm_ram_base_address;
97 97
98 info!("loading fw"); 98 debug!("loading fw");
99 self.bus.bp_write(ram_addr, firmware).await; 99 self.bus.bp_write(ram_addr, firmware).await;
100 100
101 info!("loading nvram"); 101 debug!("loading nvram");
102 // Round up to 4 bytes. 102 // Round up to 4 bytes.
103 let nvram_len = (NVRAM.len() + 3) / 4 * 4; 103 let nvram_len = (NVRAM.len() + 3) / 4 * 4;
104 self.bus 104 self.bus
@@ -112,7 +112,7 @@ where
112 .await; 112 .await;
113 113
114 // Start core! 114 // Start core!
115 info!("starting up core..."); 115 debug!("starting up core...");
116 self.core_reset(Core::WLAN).await; 116 self.core_reset(Core::WLAN).await;
117 assert!(self.core_is_up(Core::WLAN).await); 117 assert!(self.core_is_up(Core::WLAN).await);
118 118
@@ -132,7 +132,7 @@ where
132 .await; 132 .await;
133 133
134 // wait for wifi startup 134 // wait for wifi startup
135 info!("waiting for wifi init..."); 135 debug!("waiting for wifi init...");
136 while self.bus.read32(FUNC_BUS, REG_BUS_STATUS).await & STATUS_F2_RX_READY == 0 {} 136 while self.bus.read32(FUNC_BUS, REG_BUS_STATUS).await & STATUS_F2_RX_READY == 0 {}
137 137
138 // Some random configs related to sleep. 138 // Some random configs related to sleep.
@@ -158,14 +158,14 @@ where
158 158
159 // start HT clock 159 // start HT clock
160 //self.bus.write8(FUNC_BACKPLANE, REG_BACKPLANE_CHIP_CLOCK_CSR, 0x10).await; 160 //self.bus.write8(FUNC_BACKPLANE, REG_BACKPLANE_CHIP_CLOCK_CSR, 0x10).await;
161 //info!("waiting for HT clock..."); 161 //debug!("waiting for HT clock...");
162 //while self.bus.read8(FUNC_BACKPLANE, REG_BACKPLANE_CHIP_CLOCK_CSR).await & 0x80 == 0 {} 162 //while self.bus.read8(FUNC_BACKPLANE, REG_BACKPLANE_CHIP_CLOCK_CSR).await & 0x80 == 0 {}
163 //info!("clock ok"); 163 //debug!("clock ok");
164 164
165 #[cfg(feature = "firmware-logs")] 165 #[cfg(feature = "firmware-logs")]
166 self.log_init().await; 166 self.log_init().await;
167 167
168 info!("init done "); 168 debug!("wifi init done");
169 } 169 }
170 170
171 #[cfg(feature = "firmware-logs")] 171 #[cfg(feature = "firmware-logs")]
@@ -174,7 +174,7 @@ where
174 174
175 let addr = CHIP.atcm_ram_base_address + CHIP.chip_ram_size - 4 - CHIP.socram_srmem_size; 175 let addr = CHIP.atcm_ram_base_address + CHIP.chip_ram_size - 4 - CHIP.socram_srmem_size;
176 let shared_addr = self.bus.bp_read32(addr).await; 176 let shared_addr = self.bus.bp_read32(addr).await;
177 info!("shared_addr {:08x}", shared_addr); 177 debug!("shared_addr {:08x}", shared_addr);
178 178
179 let mut shared = [0; SharedMemData::SIZE]; 179 let mut shared = [0; SharedMemData::SIZE];
180 self.bus.bp_read(shared_addr, &mut shared).await; 180 self.bus.bp_read(shared_addr, &mut shared).await;